mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 10:46:15 +03:00
- Expand parent folder when a new subfolder is created
- Fixed folder renaming
This commit is contained in:
parent
07dbe388f4
commit
b9f1586068
1 changed files with 4 additions and 0 deletions
|
@ -129,6 +129,8 @@ void RSSImp::askNewFolder() {
|
|||
folder_item->setText(1, new_folder->getName());
|
||||
folder_item->setData(2,Qt::DisplayRole, QVariant((int)RssFile::FOLDER));
|
||||
folder_item->setData(0,Qt::DecorationRole, QVariant(QIcon(":/Icons/oxygen/folder.png")));
|
||||
// Expand parent folder to display new folder
|
||||
parent_item->setExpanded(true);
|
||||
rssmanager->saveStreamList();
|
||||
}
|
||||
}
|
||||
|
@ -230,6 +232,8 @@ void RSSImp::renameFiles() {
|
|||
QString newName = QInputDialog::getText(this, tr("Please choose a new name for this RSS feed"), tr("New feed name:"), QLineEdit::Normal, rssmanager->getFile(getItemPath(item))->getName(), &ok);
|
||||
if(ok) {
|
||||
rssmanager->rename(getItemPath(item), newName);
|
||||
item->setText(0, newName);
|
||||
item->setText(1, newName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue