[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/kmplot/kmplot
From: Fredrik Edemar <f_edemar () linux ! se>
Date: 2004-12-22 23:07:26
Message-ID: 20041222230726.536AD1CA5A () office ! kde ! org
[Download RAW message or body]
CVS commit by fedemar:
Don't crash when removing a function that is activated in trace mode. Backport will \
come soon.
BUG: 95636
M +8 -0 View.cpp 1.109
--- kdeedu/kmplot/kmplot/View.cpp #1.108:1.109
@@ -1828,4 +1828,12 @@ void View::mnuRemove_clicked()
m_parser->delfkt( ufkt );
+ if (csmode!=-1) // if trace mode is enabled
+ {
+ csmode=-1;
+ QMouseEvent *event = new \
QMouseEvent(QMouseEvent::KeyPress,QCursor::pos(),Qt::LeftButton,Qt::LeftButton); + \
mousePressEvent(event); //leave trace mode + delete event;
+ }
+
drawPlot();
if ( function_type != 'x' && function_type != 'y' && function_type \
!= 'r' )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic