From de3135c43b0e979200819d0f285972dfd8cc306e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 24 Jun 2010 19:29:10 +0000 Subject: [PATCH] Safer variable checking --- src/propertieswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propertieswidget.cpp b/src/propertieswidget.cpp index 574deb242..802dea04c 100644 --- a/src/propertieswidget.cpp +++ b/src/propertieswidget.cpp @@ -749,7 +749,7 @@ void PropertiesWidget::renameSelectedFile() { }else{ dir = QFileDialog::getExistingDirectory(this, tr("Choose save path"), QDir::homePath()); } - if(!dir.isNull()){ + if(!dir.isEmpty()){ // Check if savePath exists QDir savePath(misc::expandPath(dir)); if(!savePath.exists()){