<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>118920</bug_id>
          
          <creation_ts>2005-12-23 21:17:29 +0000</creation_ts>
          <short_desc>[PATCH] Don&apos;t popup dialog at startup when there are no themes on desktop</short_desc>
          <delta_ts>2006-01-08 21:10:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>superkaramba</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kurt Hindenburg">khindenburg</reporter>
          <assigned_to name="Ryan Nickell">p0z3r</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>401150</commentid>
    <comment_count>0</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-12-23 21:17:30 +0000</bug_when>
    <thetext>Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

This may be an usability issue; I think this is a bug myself.  I find it annoying when KDE starts and there are no superkaramba themes loaded on the desktop, the &apos;theme dialog&apos; popups....

Index: main.cpp
===================================================================
--- main.cpp    (revision 488735)
+++ main.cpp    (working copy)
@@ -134,13 +134,6 @@
     {
       //Not a saved session - check for themes given on command line
       app.checkCommandLine(args, lst);
-
-      if(lst.size() == 0)
-      {
-        //No themes given on command line and no saved session.
-        //Show welcome dialog.
-        app.globalShowThemeDialog();
-      }
     }

     args-&gt;clear();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403902</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Nickell">p0z3r</who>
    <bug_when>2006-01-06 03:00:51 +0000</bug_when>
    <thetext>This patch would also remove the theme dialog from appearing when someone runs SuperKaramba without themes passed as an argument for instance from the Kmenu or from a shell.

We&apos;d expect anyone running SuperKaramba upon logout to have at least one theme running when the session is saved.  

Couple of options:
1) don&apos;t save SK in the session if there are no themes running upon logout
2) have some way to identify if the app was loaded from a session or from user interaction

There may other solutions and I&apos;m open to suggestions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403920</commentid>
    <comment_count>2</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2006-01-06 06:23:19 +0000</bug_when>
    <thetext>&quot;We&apos;d expect anyone running SuperKaramba upon logout to have at least one theme running when the session is saved.&quot;
My reaction to this is why?  I don&apos;t think it is a valid assumption to make offhand.


Try this:
Index: main.cpp
===================================================================
--- main.cpp    (revision 493011)
+++ main.cpp    (working copy)
@@ -130,7 +130,7 @@

     // Try to restore a previous session if applicable.
     app.checkPreviousSession(app, lst);
-    if(lst.size() == 0)
+    if( (lst.size() == 0) &amp;&amp; !app.isRestored() )
     {
       //Not a saved session - check for themes given on command line
       app.checkCommandLine(args, lst);
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403921</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Nickell">p0z3r</who>
    <bug_when>2006-01-06 06:49:54 +0000</bug_when>
    <thetext>Not so much an assumption as a usual behavior pattern.  People use SK themes almost in the same manner as a wallpaper or desktop color.  It is expected to be there or the value in running a background handling utility when restoring a session doesn&apos;t have much value, in my opinion.  There is obviously some value in it so I will apply and commit once I finish what I&apos;m working on currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404634</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Nickell">p0z3r</who>
    <bug_when>2006-01-08 21:10:43 +0000</bug_when>
    <thetext>SVN commit 495750 by nickell:

BUG:118920 Don&apos;t pop up the Theme Dialog when restoring a session and
there aren&apos;t any themes saved in the session.


 M  +1 -1      main.cpp  


--- branches/KDE/3.5/kdeutils/superkaramba/src/main.cpp #495749:495750
@@ -130,7 +130,7 @@
 
     // Try to restore a previous session if applicable.
     app.checkPreviousSession(app, lst);
-    if(lst.size() == 0)
+    if( (lst.size() == 0) &amp;&amp; !app.isRestored() )
     {
       //Not a saved session - check for themes given on command line
       app.checkCommandLine(args, lst);
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>