Browse Source

Safer variable checking

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
de3135c43b
  1. 2
      src/propertieswidget.cpp

2
src/propertieswidget.cpp

@ -749,7 +749,7 @@ void PropertiesWidget::renameSelectedFile() { @@ -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()){

Loading…
Cancel
Save