Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
BUG:499777 Python window.showView() now working
Scott Petrovic8dd2bdbb4a76
diff --git a/libs/libkis/Window.cpp b/libs/libkis/Window.cppindex 5a03297911..110735bae6 100644--- a/libs/libkis/Window.cpp+++ b/libs/libkis/Window.cpp@@ -93,11 +93,12 @@ View *Window::addView(Document *document)return 0;}-void Window::showView(View *view)+void Window::showView(View *v){- if (views().contains(view)) {- KisView *v = view->view();- d->window->showView(v);+ if (v && v->view()) {+ KisView *view = v->view();+ view->setVisible(true);+ d->window->setActiveView(view);}}diff --git a/libs/libkis/Window.h b/libs/libkis/Window.hindex 96f647dc45..7bd913d09e 100644--- a/libs/libkis/Window.h+++ b/libs/libkis/Window.h@@ -58,7 +58,7 @@ public Q_SLOTS:* Make the given view active in this window. If the view* does not belong to this window, nothing happens.*/- void showView(View *view);+ void showView(View *v);/**