diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-04-23 08:45:58 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-04-23 08:45:58 +0200 |
commit | 584f1e89b9cbbc725d44d63edad1297c688ed04e (patch) | |
tree | 7fb03576c7b3cadf3650241ad5a6ee6a4f7ec607 /application/MainWindow.cpp | |
parent | 72ff342d6325cab42cc3d8401b4fac5b2f7eff3b (diff) | |
download | MultiMC-584f1e89b9cbbc725d44d63edad1297c688ed04e.tar MultiMC-584f1e89b9cbbc725d44d63edad1297c688ed04e.tar.gz MultiMC-584f1e89b9cbbc725d44d63edad1297c688ed04e.tar.lz MultiMC-584f1e89b9cbbc725d44d63edad1297c688ed04e.tar.xz MultiMC-584f1e89b9cbbc725d44d63edad1297c688ed04e.zip |
GH-2252 make URL drop signal use a queued connection instead of direct call
Hopefully this will fix the issues with stuck applications on Windows.
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 60742412..7e74a369 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -666,7 +666,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow view->installEventFilter(this); view->setContextMenuPolicy(Qt::CustomContextMenu); connect(view, &QWidget::customContextMenuRequested, this, &MainWindow::showInstanceContextMenu); - connect(view, &GroupView::droppedURLs, this, &MainWindow::droppedURLs); + connect(view, &GroupView::droppedURLs, this, &MainWindow::droppedURLs, Qt::QueuedConnection); proxymodel = new InstanceProxyModel(this); proxymodel->setSourceModel(MMC->instances().get()); |