[calligra/krita-testing-kazakov] krita/ui: Disable Tooltip Manager in Sketch/Gemini mode
Dmitry Kazakov
dimula73 at gmail.com
Thu May 22 09:49:37 UTC 2014
Git commit b8173de2f16e072869b1100f49dd0cf6d70268f0 by Dmitry Kazakov.
Committed on 22/05/2014 at 09:49.
Pushed by dkazakov into branch 'krita-testing-kazakov'.
Disable Tooltip Manager in Sketch/Gemini mode
Right now it causes crashes in gemini and sketch. It either should be
fixed or declared as not working with Sketch.
CCMAIL:kimageshop at kde.org
M +7 -2 krita/ui/kis_view2.cpp
http://commits.kde.org/calligra/b8173de2f16e072869b1100f49dd0cf6d70268f0
diff --git a/krita/ui/kis_view2.cpp b/krita/ui/kis_view2.cpp
index 5bb912a..65df156 100644
--- a/krita/ui/kis_view2.cpp
+++ b/krita/ui/kis_view2.cpp
@@ -458,8 +458,13 @@ KisView2::KisView2(KoPart *part, KisDoc2 * doc, QWidget * parent)
connect(mainWindow(), SIGNAL(themeChanged()), this, SLOT(updateIcons()));
updateIcons();
- m_d->tooltipManager = new KisTooltipManager(this);
-// m_d->tooltipManager->record();
+ /**
+ * FIXME: for now enable tooltip manager only in non-sketch mode!
+ */
+ if (mainWindow()) {
+ m_d->tooltipManager = new KisTooltipManager(this);
+ // m_d->tooltipManager->record();
+ }
}
More information about the kimageshop
mailing list