Browse Source

Fix crash when the selected torrent disappears from the transfer list. Closes #1661

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
c0b3ad7ee3
  1. 4
      src/properties/propertieswidget.cpp

4
src/properties/propertieswidget.cpp

@ -469,6 +469,10 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&) { @@ -469,6 +469,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…
Cancel
Save