1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

- Fix a crash when hitting "change save path" button and no torrent is selected

This commit is contained in:
Christophe Dumez 2009-11-24 21:35:22 +00:00
parent b2a0ddb9b1
commit 6f69ab2b6d

View File

@ -568,6 +568,7 @@ bool PropertiesWidget::applyPriorities() {
void PropertiesWidget::on_changeSavePathButton_clicked() { void PropertiesWidget::on_changeSavePathButton_clicked() {
if(!h.is_valid()) return;
QString dir; QString dir;
QDir saveDir(h.save_path()); QDir saveDir(h.save_path());
if(saveDir.exists()){ if(saveDir.exists()){