From dd14f5ab39296552f245405eb4f38f90c6fb4fb0 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 24 Jun 2010 19:30:56 +0000 Subject: [PATCH] Safer variable check --- src/propertieswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propertieswidget.cpp b/src/propertieswidget.cpp index 3ad2d66fa..dd721ff61 100644 --- a/src/propertieswidget.cpp +++ b/src/propertieswidget.cpp @@ -740,7 +740,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()){