mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
- Delete torrent permanently from hard drive used to delete parent folder if empty (fixed)
This commit is contained in:
parent
d12e510fad
commit
e2427a4ce2
4 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue