Commit 7ef60648 authored by Ivan Yossi's avatar Ivan Yossi 👌

Delay initialization of brush paintop widget state

State requires an active view in the canvas
to change widget status.

BUG:415033
parent 915212cb
......@@ -653,6 +653,13 @@ void KisMainWindow::showView(KisView *imageView, QMdiSubWindow *subwin)
subwin->setOption(QMdiSubWindow::RubberBandResize, cfg.readEntry<int>("mdi_rubberband", cfg.useOpenGL()));
subwin->setWindowIcon(qApp->windowIcon());
if (d->mdiArea->subWindowList().size() == 1) {
imageView->showMaximized();
}
else {
imageView->show();
}
/**
* Hack alert!
*
......@@ -675,13 +682,6 @@ void KisMainWindow::showView(KisView *imageView, QMdiSubWindow *subwin)
KoToolManager::instance()->initializeCurrentToolForCanvas();
if (d->mdiArea->subWindowList().size() == 1) {
imageView->showMaximized();
}
else {
imageView->show();
}
// No, no, no: do not try to call this _before_ the show() has
// been called on the view; only when that has happened is the
// opengl context active, and very bad things happen if we tell
......
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