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:
Christian Kandeler
2011-07-29 11:53:39 +02:00
parent a65983219a
commit c031d4564e

View File

@@ -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;
}