[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kmplot/kmplot
From:       Fredrik Edemar <f_edemar () linux ! se>
Date:       2005-09-29 20:29:10
Message-ID: 1128025750.461313.26918.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 465450 by fedemar:

Backport the fix for #113387.


 M  +15 -0     View.cpp  


--- trunk/KDE/kdeedu/kmplot/kmplot/View.cpp #465449:465450
@@ -1834,6 +1834,9 @@
 
 void View::mnuHide_clicked()
 {
+    if ( csmode == -1 )
+      return;
+
 	Ufkt *ufkt = &m_parser->ufkt[ m_parser->ixValue(csmode)];
 	switch (cstype )
 	{
@@ -1870,6 +1873,9 @@
 }
 void View::mnuRemove_clicked()
 {
+    if ( csmode == -1 )
+      return;
+
 	if ( KMessageBox::warningContinueCancel(this,i18n("Are you sure you want to remove \
this function?"), QString::null, KStdGuiItem::del()) == KMessageBox::Continue )  {
 		Ufkt *ufkt =  &m_parser->ufkt[m_parser->ixValue(csmode)];
@@ -1893,6 +1899,9 @@
 }
 void View::mnuEdit_clicked()
 {
+    if ( csmode == -1 )
+      return;
+
 	if ( m_parser->ufkt[m_parser->ixValue(csmode)].fstr[0] == 'x') // a parametric \
function  {
 		int y_index = csmode+1; //the y-function
@@ -1924,12 +1933,18 @@
 
 void View::mnuCopy_clicked()
 {
+    if ( csmode == -1 )
+      return;
+
 	if ( m_parser->sendFunction(csmode) )
 		m_modified = true;
 }
 
 void View::mnuMove_clicked()
 {
+    if ( csmode == -1 )
+      return;
+
 	if ( m_parser->sendFunction(csmode) )
 	{
 	  	if (!m_parser->delfkt(csmode) )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic