Bug 82013 - One error left behind the splash screen
Summary: One error left behind the splash screen
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-22 17:47 UTC by Melvyn Sopacua
Modified: 2004-05-25 21:08 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 Melvyn Sopacua 2004-05-22 17:47:59 UTC
Version:           3.3 Bleeding Edge (2004-03-09) (using KDE 3.2.2, compiled sources)
Compiler:          gcc version 3.3.3 [FreeBSD] 20031106
OS:                FreeBSD (i386) release 5.2-CURRENT

There have been many resolved, but I just encountered one.

If Kate thinks there is a parser error, then it's dialog will stay behind the splash screen and loading further documents will stop.

Here's a sample document, saved as utf-8, what generates the error in my case:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="journal.xslt" type="application/xml"?>
<journal version="1.0" for="Vylen">
	<entry date="20040519" time="210900" where="South Qeynos" quest="Elisi">
		Find out what happened to <npc>Elisi</npc>. Present a guy named
		<npc>Jalorin</npc> with a medal that I have received. Then return to the
		<citypart>Docks</citypart> in <city>Erudin</city> and report back to
		<npc>Brianna Falsruinay</npc>, on the first level of the
		<building>Portauthority</building>.
	</entry>
</journal>
Comment 1 András Manţia 2004-05-25 21:08:29 UTC
CVS commit by amantia: 

Unconditionally hide the splash screen after 10 seconds.

CCMAIL: 82013-done@bugs.kde.org
CCMAIL: 80086-done@bugs.kde.org


  M +1 -0      ChangeLog   1.205.2.39
  M +15 -0     quanta/kqapp.cpp   1.43.2.6
  M +3 -3      quanta/kqapp.h   1.10.4.1


--- quanta/ChangeLog  #1.205.2.38:1.205.2.39
@@ -23,4 +23,5 @@
         - don't be confused by quotation marks inside a script area which is inside a tag value
           (like <a href="<? echo "foo" ?>">) [#80683]
+        - unconditionally hide the splash screen after 10 seconds [#80086, #82013]
 
     - improvements:

--- quanta/quanta/kqapp.cpp  #1.43.2.5:1.43.2.6
@@ -86,4 +86,5 @@ KQApplication::KQApplication()
        splash = new KSplash();
        connect(quantaApp, SIGNAL(showSplash(bool)), splash, SLOT(setShown(bool)));
+       QTimer::singleShot(10*1000, this, SLOT(slotSplashTimeout()));
      }
      setMainWidget(quantaApp);
@@ -101,4 +102,9 @@ KQApplication::~KQApplication()
 }
 
+void KQApplication::slotSplashTimeout()
+{
+  delete splash;
+  splash = 0L;
+}
 
 KQUniqueApplication::KQUniqueApplication()
@@ -141,4 +147,5 @@ int KQUniqueApplication::newInstance()
       splash = new KSplash();
       connect(quantaApp, SIGNAL(showSplash(bool)), splash, SLOT(setShown(bool)));
+      QTimer::singleShot(10*1000, this, SLOT(slotSplashTimeout()));
     }
     setMainWidget(quantaApp);
@@ -154,4 +161,11 @@ void KQUniqueApplication::slotInit()
 }
 
+void KQUniqueApplication::slotSplashTimeout()
+{
+  delete splash;
+  splash = 0L;
+}
+
+
 void KQApplicationPrivate::init()
 {
@@ -186,4 +200,5 @@ void KQApplicationPrivate::init()
   args->clear();
   delete splash;
+  splash = 0L;
 }
 

--- quanta/quanta/kqapp.h  #1.10:1.10.4.1
@@ -36,5 +36,5 @@ class KQApplicationPrivate
 {
   public:
-    KQApplicationPrivate() {};
+    KQApplicationPrivate():splash(0L){};
     ~KQApplicationPrivate() {};
 
@@ -56,5 +56,5 @@ class KQApplication : public KApplicatio
     /** No descriptions */
     void slotInit();
-
+    void slotSplashTimeout();
 };
 
@@ -73,5 +73,5 @@ class KQUniqueApplication : public KUniq
     /** No descriptions */
     void slotInit();
-
+    void slotSplashTimeout();
 };