Bug 60142 - kdvi is not restarted with new sessions
Summary: kdvi is not restarted with new sessions
Status: RESOLVED FIXED
Alias: None
Product: kdvi
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Matthias Hoelzer-Kluepfel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 19:23 UTC by O Kullmann
Modified: 2005-01-23 12:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O Kullmann 2003-06-20 19:23:39 UTC
Version:           0.2 (using KDE 3.1.1)
Installed from:    SuSE
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

Since Kdvi seems to be a native KDE application, I would assume
that when I leave a kdvi window open when closing a session (storing
it of course) and then restart the session, that then it reappears
(like konqueror does, for example). But it doesn't.
Comment 1 Wilfried Huss 2005-01-23 12:12:12 UTC
CVS commit by whuss: 

Enable session management.
Fixes bug #60142.

BUG:60142


  M +66 -57    main.cpp   1.10


--- kdegraphics/kdvi/main.cpp  #1.9:1.10
@@ -56,4 +56,12 @@ int main(int argc, char** argv)
   KCmdLineArgs::addCmdLineOptions(options);
   KApplication app;
+
+  // see if we are starting with session management
+  if (app.isRestored())
+  {
+    RESTORE(KViewShell);
+  }
+  else
+  {
   KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
 
@@ -135,4 +142,6 @@ int main(int argc, char** argv)
 
   shell->show();
+  }
+
   return app.exec();
 }


Comment 2 Wilfried Huss 2005-01-23 12:42:33 UTC
This bug has been fixed for KDE 3.4 which should be released in March 2005.

Thanks for your help,
Wilfried Huss.