[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Oct 21 22:57:11 CEST 2004


CVS commit by staikos: 

- don't prompt when deleting curves
- equation plugins actually do hold references to vectors properly.
  Unfortunately it's a little too properly...  They hold two references.  Not
  sure what the best solution is for this yet, but it needs to be fixed.


  M +0 -1      enodes.cpp   1.24
  M +3 -1      kstdatamanager_i.cpp   1.87


--- kdeextragear-2/kst/kst/enodes.cpp  #1.23:1.24
@@ -327,5 +327,4 @@ Function::~Function() {
 double Function::evaluatePlugin(Context *ctx) {
   // FIXME: deal with "x" from equation dialog
-  // FIXME: collect dependency vectors to pass up to KstEquation
   // FIXME: do this ONLY if it needs to update
   {

--- kdeextragear-2/kst/kst/kstdatamanager_i.cpp  #1.86:1.87
@@ -504,5 +504,7 @@ void KstDataManagerI::delete_I() {
     }
   } else {
-    if (KMessageBox::warningYesNo(this, i18n("There are other objects in memory that depend on %1.  Do you wish to delete them too?").arg(koi->tagName())) == KMessageBox::Yes) {
+    // Don't prompt for base curves
+    KstBaseCurvePtr bc = kst_cast<KstBaseCurve>(koi->dataObject());
+    if (bc || KMessageBox::warningYesNo(this, i18n("There are other objects in memory that depend on %1.  Do you wish to delete them too?").arg(koi->tagName())) == KMessageBox::Yes) {
 
       if (qi->rtti() == RTTI_OBJ_OBJECT) {





More information about the Kst mailing list