[rkward-cvs] rkward/rkward rkward.cpp,1.64,1.65
Pierre
ecoch at users.sourceforge.net
Thu Mar 24 09:15:36 UTC 2005
Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19796
Modified Files:
rkward.cpp
Log Message:
Little bugfix
Index: rkward.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rkward.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** rkward.cpp 24 Mar 2005 09:02:13 -0000 1.64
--- rkward.cpp 24 Mar 2005 09:15:33 -0000 1.65
***************
*** 1031,1035 ****
if (! activeWindow()->inherits("RKCommandEditorWindow"))
return;
!
RKGlobals::rInterface ()->issueCommand (new RCommand ( ((RKCommandEditorWindow*) activeWindow())->getSelection(), RCommand::User, ""));
}
--- 1031,1038 ----
if (! activeWindow()->inherits("RKCommandEditorWindow"))
return;
!
! if(((RKCommandEditorWindow*) activeWindow())->getSelection().isEmpty() || ((RKCommandEditorWindow*) activeWindow())->getSelection().isNull())
! return;
!
RKGlobals::rInterface ()->issueCommand (new RCommand ( ((RKCommandEditorWindow*) activeWindow())->getSelection(), RCommand::User, ""));
}
***************
*** 1040,1043 ****
--- 1043,1048 ----
if (! activeWindow()->inherits("RKCommandEditorWindow"))
return;
+ if(((RKCommandEditorWindow*) activeWindow())->getText().isEmpty() || ((RKCommandEditorWindow*) activeWindow())->getText().isNull())
+ return;
RKGlobals::rInterface ()->issueCommand (new RCommand ( ((RKCommandEditorWindow*) activeWindow())->getText(), RCommand::User, ""));
More information about the rkward-tracker
mailing list