1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Safer variable checking

This commit is contained in:
Christophe Dumez 2010-06-24 19:29:10 +00:00
parent faed0ba45a
commit de3135c43b

View File

@ -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()){