mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
- Delete torrent permanently from hard drive used to delete parent folder if empty (fixed)
This commit is contained in:
@@ -186,7 +186,6 @@ class PropListDelegate: public QItemDelegate {
|
||||
public slots:
|
||||
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
|
||||
QComboBox *combobox = static_cast<QComboBox*>(editor);
|
||||
// combobox->interpretText();
|
||||
int value = combobox->currentIndex();
|
||||
qDebug("Setting combobox value in index: %d", value);
|
||||
QString color;
|
||||
|
||||
@@ -116,7 +116,7 @@ class misc : public QObject{
|
||||
}
|
||||
}
|
||||
// Remove empty folder
|
||||
if(current_dir.rmpath(path)){
|
||||
if(current_dir.rmdir(path)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user