mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-04 10:54:35 +00:00
- Fixed 'cancel' button in RSS feed renaming dialog (Thanks Mariusz)
This commit is contained in:
parent
4af05dc63c
commit
422c03b4ec
@ -322,18 +322,20 @@ void RSSImp::renameFiles() {
|
||||
do {
|
||||
newName = QInputDialog::getText(this, tr("Please choose a new name for this RSS feed"), tr("New feed name:"), QLineEdit::Normal, listStreams->getRSSItem(item)->getName(), &ok);
|
||||
// Check if name is already taken
|
||||
if(ok && rss_item->getParent()->contains(newName)) {
|
||||
if(ok) {
|
||||
if(rss_item->getParent()->contains(newName)) {
|
||||
QMessageBox::warning(0, tr("Name already in use"), tr("This name is already used by another item, please choose another one."));
|
||||
ok = false;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}while(!ok);
|
||||
if(ok) {
|
||||
// Rename item
|
||||
rss_item->rename(newName);
|
||||
// Update TreeWidget
|
||||
updateItemInfos(item);
|
||||
}
|
||||
}
|
||||
|
||||
//right-click on stream : refresh it
|
||||
void RSSImp::refreshSelectedItems() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user