aboutsummaryrefslogtreecommitdiffstats
path: root/fileencryptiondialog.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-04-14 16:39:42 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-04-14 16:39:42 +0000
commit0f0d03f2c357ac2f9eedd53d959a19b5de9805cb (patch)
treec250a801a1721c56882b2a9ee9c4164fd12530e3 /fileencryptiondialog.cpp
parentupdated russian translation (diff)
downloadgpg4usb-0f0d03f2c357ac2f9eedd53d959a19b5de9805cb.tar.gz
gpg4usb-0f0d03f2c357ac2f9eedd53d959a19b5de9805cb.zip
focus is kept on main window when closing settingsdialog, filecrypt. Added some ifndefs
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@302 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'fileencryptiondialog.cpp')
-rwxr-xr-xfileencryptiondialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/fileencryptiondialog.cpp b/fileencryptiondialog.cpp
index aee52bb..b7b009d 100755
--- a/fileencryptiondialog.cpp
+++ b/fileencryptiondialog.cpp
@@ -34,7 +34,9 @@
#include "fileencryptiondialog.h"
-FileEncryptionDialog::FileEncryptionDialog(GpgME::Context *ctx, QString iconPath)
+FileEncryptionDialog::FileEncryptionDialog(GpgME::Context *ctx, QString iconPath, QWidget *parent)
+ : QDialog(parent)
+
{
mCtx = ctx;
@@ -107,7 +109,8 @@ void FileEncryptionDialog::selectInputFile()
path=QFileInfo(inputFileEdit->text()).absolutePath();
}
- QString infileName = QFileDialog::getOpenFileName(this, tr("Open File"), path, tr("Files") + tr("All Files (*)"));
+// QString infileName = QFileDialog::getOpenFileName(this, tr("Open File"), path, tr("Files") + tr("All Files (*)"));
+ QString infileName = QFileDialog::getOpenFileName(this, tr("Open File"), path);
inputFileEdit->setText(infileName);
// try to find a matching output-filename, if not yet done