mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:06:43 +00:00
Fixed a context menu bug which caused an assert on empty view
This commit is contained in:
parent
c9be134226
commit
b7ae31d5fe
1 changed files with 5 additions and 1 deletions
|
@ -643,7 +643,11 @@ void DataFilesPage::scrollToSelection()
|
||||||
|
|
||||||
void DataFilesPage::showContextMenu(const QPoint &point)
|
void DataFilesPage::showContextMenu(const QPoint &point)
|
||||||
{
|
{
|
||||||
|
// Make sure there are plugins in the view
|
||||||
|
if (!mPluginsTable->selectionModel()->hasSelection()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QPoint globalPos = mPluginsTable->mapToGlobal(point);
|
QPoint globalPos = mPluginsTable->mapToGlobal(point);
|
||||||
|
|
||||||
QModelIndexList selectedIndexes = mPluginsTable->selectionModel()->selectedIndexes();
|
QModelIndexList selectedIndexes = mPluginsTable->selectionModel()->selectedIndexes();
|
||||||
|
|
Loading…
Reference in a new issue