mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-10 07:10:12 -04:00
Fix Import and Export Cert file *.asc.
This commit is contained in:
parent
edce1e953c
commit
d000d75a38
2 changed files with 4 additions and 6 deletions
|
@ -402,8 +402,8 @@ void GenCertDialog::exportIdentity()
|
|||
{
|
||||
QString fname = QFileDialog::getSaveFileName(this,tr("Export profile"), "",tr("RetroShare profile files (*.asc)")) ;
|
||||
|
||||
if(fname.isNull())
|
||||
return ;
|
||||
if(fname.isNull()) return ;
|
||||
if(fname.right(4).toUpper() != ".ASC") fname += ".asc";
|
||||
|
||||
QVariant data = ui.genPGPuser->itemData(ui.genPGPuser->currentIndex());
|
||||
RsPgpId gpg_id (data.toString().toStdString()) ;
|
||||
|
@ -416,7 +416,7 @@ void GenCertDialog::exportIdentity()
|
|||
|
||||
void GenCertDialog::importIdentity()
|
||||
{
|
||||
QString fname = QFileDialog::getOpenFileName(this,tr("Import profile"), "",tr("RetroShare profile files (*.asc)")) ;
|
||||
QString fname = QFileDialog::getOpenFileName(this,tr("Import profile"), "",tr("RetroShare profile files (*.asc);;All Files (*)")) ;
|
||||
|
||||
if(fname.isNull())
|
||||
return ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue