mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Fix crash when the selected torrent disappears from the transfer list. Closes #1661
This commit is contained in:
parent
81fa246687
commit
c0b3ad7ee3
1 changed files with 4 additions and 0 deletions
|
@ -469,6 +469,10 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&) {
|
||||||
}
|
}
|
||||||
// Call menu
|
// Call menu
|
||||||
const QAction *act = myFilesLlistMenu.exec(QCursor::pos());
|
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) {
|
||||||
if (act == actRename) {
|
if (act == actRename) {
|
||||||
renameSelectedFile();
|
renameSelectedFile();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue