]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/textctrl.cpp
added and documented wxDir::HasFiles/SubDirs(), use the latter in wxDirDialog - it...
[wxWidgets.git] / src / motif / textctrl.cpp
index ce98355f14467e143f7180b3a490fe9bca16cd5c..3a66bd8ff8a6661ecacf9abedfb47e1610558110 100644 (file)
@@ -304,7 +304,7 @@ bool wxTextCtrl::CanCut() const
     // Can cut if there's a selection
     long from, to;
     GetSelection(& from, & to);
-    return (from != to) ;
+    return (from != to) && (IsEditable());
 }
 
 bool wxTextCtrl::CanPaste() const