aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshkeycreationdialog.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2014-10-24 10:28:28 +0200
committerhjk <[email protected]>2014-11-03 09:31:28 +0100
commita439483d704113286370e7e93e0e6bc16199d8ab (patch)
tree783c9d122917a01025e80fb9a6b8e558f33f00a3 /src/libs/ssh/sshkeycreationdialog.cpp
parent1e9b561cae81cb5d90922a094135930529ae0446 (diff)
Use QFileInfo::exist(f) instead of QFileInfo(f).exists() if possible
Faster. Change-Id: I91aa67462e11ff3258600d7f158de79942d0dc81 Reviewed-by: Marc Reilly <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/libs/ssh/sshkeycreationdialog.cpp')
-rw-r--r--src/libs/ssh/sshkeycreationdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp
index ff38fe239f7..39d36aa993c 100644
--- a/src/libs/ssh/sshkeycreationdialog.cpp
+++ b/src/libs/ssh/sshkeycreationdialog.cpp
@@ -142,7 +142,7 @@ void SshKeyCreationDialog::saveKeys()
bool SshKeyCreationDialog::userForbidsOverwriting()
{
- if (!QFileInfo(privateKeyFilePath()).exists() && !QFileInfo(publicKeyFilePath()).exists())
+ if (!QFileInfo::exists(privateKeyFilePath()) && !QFileInfo::exists(publicKeyFilePath()))
return false;
const QMessageBox::StandardButton reply = QMessageBox::question(this, tr("File Exists"),
tr("There already is a file of that name. Do you want to overwrite it?"),