Hey everybody,
I must admit I haven't really made an effort to understand basKet source code -
but a while back I managed to fix this bug. It boils down to what Robert did
plus one little additional modification; apparently something is seriously
wrong with the setShown method.
See the attached patch, hope this helps.
Thank you for working on this program, I love it.
Cheers,
Frank
diff --git a/src/bnpview.cpp b/src/bnpview.cpp
index 5fbb3f0..411702a 100644
--- a/src/bnpview.cpp
+++ b/src/bnpview.cpp
@@ -166,6 +166,7 @@ void BNPView::lateInit()
toolbar->hide();
}
*/
+ /*
if (!isPart()) {
if (Settings::useSystray() && KCmdLineArgs::parsedArgs() && KCmdLineArgs::parsedArgs()->isSet("start-hidden")) {
if (Global::mainWindow()) Global::mainWindow()->hide();
@@ -173,7 +174,8 @@ void BNPView::lateInit()
if (Global::mainWindow()) Global::mainWindow()->setShown(!Settings::startDocked());
}
}
-
+ */
+
// If the main window is hidden when session is saved, Container::queryClose()
// isn't called and the last value would be kept
Settings::setStartDocked(true);
diff --git a/src/main.cpp b/src/main.cpp
index 93e4b36..e9ad6ff 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -77,8 +77,10 @@ int main(int argc, char *argv[])
if (KCmdLineArgs::parsedArgs() && KCmdLineArgs::parsedArgs()->isSet("start-hidden"))
;
// When the application is restored by KDE session, restore its state:
- else if (app.isSessionRestored())
- win->setShown(!Settings::startDocked());
+ else if (app.isSessionRestored()) {
+ if (!Settings::startDocked())
+ win->show();
+ }
// Else, the application has been launched explicitely by the user (KMenu, keyboard shortcut...), so he need it, we show it:
else
win->show();
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Basket-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/basket-devel