Browse Source

- Expand parent folder when a new subfolder is created

- Fixed folder renaming
adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
b9f1586068
  1. 4
      src/rss_imp.cpp

4
src/rss_imp.cpp

@ -129,6 +129,8 @@ void RSSImp::askNewFolder() { @@ -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() { @@ -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…
Cancel
Save