forked from qt-creator/qt-creator
RemoteLinux: Fix key deployment dialog.
When aborting the file dialog, the deployment dialog would not close on its own. Change-Id: I614f199b9fd486593e12b18f7f536561e7edae1d Reviewed-on: http://codereview.qt.nokia.com/2388 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "linuxdeviceconfiguration.h"
|
||||
#include "maemokeydeployer.h"
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtGui/QFileDialog>
|
||||
|
||||
namespace RemoteLinux {
|
||||
@@ -66,7 +67,7 @@ PublicKeyDeploymentDialog::PublicKeyDeploymentDialog(const LinuxDeviceConfigurat
|
||||
tr("Choose Public Key File"), dir,
|
||||
tr("Public Key Files (*.pub);;All Files (*)"));
|
||||
if (publicKeyFileName.isEmpty()) {
|
||||
reject();
|
||||
QTimer::singleShot(0, this, SLOT(reject()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user