Fixed a context menu bug which caused an assert on empty view

actorid
Pieter van der Kloet 14 years ago
parent c9be134226
commit b7ae31d5fe

@ -643,6 +643,10 @@ void DataFilesPage::scrollToSelection()
void DataFilesPage::showContextMenu(const QPoint &point)
{
// Make sure there are plugins in the view
if (!mPluginsTable->selectionModel()->hasSelection()) {
return;
}
QPoint globalPos = mPluginsTable->mapToGlobal(point);

Loading…
Cancel
Save