mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix crash when the selected torrent disappears from the transfer list. Closes #1661
This commit is contained in:
parent
6d961cdcc5
commit
c1831a4e97
1 changed files with 4 additions and 0 deletions
|
@ -461,6 +461,10 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&) {
|
|||
}
|
||||
// Call menu
|
||||
const QAction *act = myFilesLlistMenu.exec(QCursor::pos());
|
||||
// The selected torrent might have dissapeared during exec()
|
||||
// from the current view thus leaving invalid indices.
|
||||
if (!(selectedRows.begin()->isValid()))
|
||||
return;
|
||||
if (act) {
|
||||
if (act == actRename) {
|
||||
renameSelectedFile();
|
||||
|
|
Loading…
Reference in a new issue