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.
This commit is contained in:
parent
72ff342d63
commit
584f1e89b9
@ -666,7 +666,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow
|
|||||||
view->installEventFilter(this);
|
view->installEventFilter(this);
|
||||||
view->setContextMenuPolicy(Qt::CustomContextMenu);
|
view->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(view, &QWidget::customContextMenuRequested, this, &MainWindow::showInstanceContextMenu);
|
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 = new InstanceProxyModel(this);
|
||||||
proxymodel->setSourceModel(MMC->instances().get());
|
proxymodel->setSourceModel(MMC->instances().get());
|
||||||
|
Loading…
Reference in New Issue
Block a user