diff options
| author | Tannin <devnull@localhost> | 2014-12-20 14:45:08 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-12-20 14:45:08 +0100 |
| commit | 7bfb48d6abb248d9739281ae46f8e9f52fcd16e3 (patch) | |
| tree | d9e954d5a0bbad8559e2ddefd6ec018d4e59c1f2 /src/modlistsortproxy.cpp | |
| parent | 88817c7f3b259550741c5e203fb28f7f705ce30c (diff) | |
cleanup
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. #include <QWidgetAction>
#include <QApplication>
#include <QDebug>
+#include <QTreeView>
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<QTreeView*>("modList");
+ MessageDialog::showMessage(tr("Drag&Drop is only supported when sorting by priority"), wid);
return false;
}
if ((row == -1) && (column == -1)) {
|
