From 7bfb48d6abb248d9739281ae46f8e9f52fcd16e3 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 20 Dec 2014 14:45:08 +0100 Subject: cleanup --- src/modlistsortproxy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modlistsortproxy.cpp') diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 0f6ce33a..4e066eb8 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -27,6 +27,7 @@ along with Mod Organizer. If not, see . #include #include #include +#include ModListSortProxy::ModListSortProxy(Profile* profile, QObject *parent) @@ -324,7 +325,8 @@ bool ModListSortProxy::dropMimeData(const QMimeData *data, Qt::DropAction action int row, int column, const QModelIndex &parent) { if (sortColumn() != ModList::COL_PRIORITY) { - MessageDialog::showMessage(tr("Drag&Drop is only supported when sorting by priority"), qApp->activeWindow()); + QWidget *wid = qApp->activeWindow()->findChild("modList"); + MessageDialog::showMessage(tr("Drag&Drop is only supported when sorting by priority"), wid); return false; } if ((row == -1) && (column == -1)) { -- cgit v1.3.1