Commit 7f636275 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

sublime: fix crash on undocking toolviews with Qt 5.13

BUG: 409790
FIXED-IN: 5.3.3
parent aad6790c
......@@ -147,6 +147,13 @@ void IdealController::addView(Qt::DockWidgetArea area, View* view)
void IdealController::dockLocationChanged(Qt::DockWidgetArea area)
{
// Seems since Qt 5.13 the signal QDockWidget::dockLocationChanged is emitted also when the dock changes
// to be floating, with area = Qt::NoDockWidgetArea. The current code is not designed for this,
// so just ignore the signal in that case for now
if (area == Qt::NoDockWidgetArea) {
return;
}
IdealDockWidget *dock = qobject_cast<IdealDockWidget*>(sender());
View *view = dock->view();
QAction* action = m_view_to_action.value(view);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment