Bug 87021 - the 'the current plot def has been modified. Do you want to save it'' dialog is too agressive.
Summary: the 'the current plot def has been modified. Do you want to save it'' dialog...
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 05:42 UTC by Netterfield
Modified: 2004-08-12 06:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Netterfield 2004-08-12 05:42:59 UTC
Version:           0.99-devel (using KDE 3.2 BRANCH >= 20040204, Mandrake Linux Cooker i586 - Cooker)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:                Linux (i686) release 2.6.3-7mdk

create a plot in kst from the command line 
eg: 
kst -y GYRO1 -f 0 -n 1000 /data/rawdir/BlastTestFlight/

without doing anything, select file->quit

the 'the current plot def has been modified.  Do you want to save it'' dialog dialog pops up.

Correct Behavior:
if a plots has been made exclusively from the command line, and not modified, then kst should be able to exit without confirmation.
Comment 1 George Staikos 2004-08-12 06:14:51 UTC
CVS commit by staikos: 

nothing is modified in Kst until the UI is shown
CCMAIL: 87021-done@bugs.kde.org


  M +3 -1      main.cpp   1.72


--- kdeextragear-2/kst/kst/main.cpp  #1.71:1.72
@@ -32,11 +32,12 @@
 #include "kstdatacollection.h"
 #include "kstdefaultnames.h"
+#include "kstdoc.h"
 #include "kstequationcurve.h"
 #include "ksthistogram.h"
 #include "kstlegend.h"
 #include "kstpsdcurve.h"
+#include "ksttoplevelview.h"
 #include "kstvcurve.h"
 #include "kstversion.h"
-#include "ksttoplevelview.h"
 #include "plugincollection.h"
 
@@ -637,4 +638,5 @@ int main(int argc, char *argv[]) {
       kst->show();
       kst->updateDialogs();
+      kst->document()->setModified(false);
     }