[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue May 25 15:38:14 CEST 2004
CVS commit by staikos:
activate new mdi windows after creating them - fixes focus bug
M +9 -5 kst.cpp 1.121
--- kdeextragear-2/kst/kst/kst.cpp #1.120:1.121
@@ -212,4 +212,5 @@ KstApp::KstApp(QWidget *parent, const ch
w->setTabCaption(i18n("Default"));
addWindow(w);
+ w->activate();
}
@@ -1121,4 +1122,5 @@ QString KstApp::newWindow() {
w->setTabCaption(name);
addWindow(w);
+ w->activate();
return name;
}
@@ -1126,12 +1129,13 @@ QString KstApp::newWindow() {
KstTopLevelView *KstApp::activeView() {
KstViewWindow *vw = dynamic_cast<KstViewWindow *>(activeWindow());
- if (vw==NULL) {
- return (NULL);
- } else {
- return (vw->view());
+ if (!vw) {
+ return 0L;
}
+ return vw->view();
}
-Kst2DPlotMap* KstApp::plotHolderWhileOpeningDocument() {
+
+// FIXME: dangerous!!!!
+Kst2DPlotMap *KstApp::plotHolderWhileOpeningDocument() {
return &_plotHolderWhileOpeningDocument;
}
More information about the Kst
mailing list