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

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdelibs/kate/part
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2003-01-19 7:17:32
[Download RAW message or body]

CVS commit by wheeler: 

Backporting the fix from HEAD that makes read-only parts able to use 
shortcuts that modify the document.  In HEAD this went into revision 1.222.


  M +37 -34    kateview.cpp   1.221.2.1


--- kdelibs/kate/part/kateview.cpp  #1.221:1.221.2.1
@@ -415,5 +415,7 @@ void KateView::setupEditActions()
     this, SLOT(shiftToMatchingBracket()),
     ac, "select_matching_bracket" );
-
+  // anders: shortcuts doing any changes should not be created in browserextension
+  if ( !m_doc->m_bReadOnly )
+  {
   new KAction(
     i18n("Transpose Characters"),           CTRL          + Key_T,
@@ -447,4 +449,5 @@ void KateView::setupEditActions()
     this, SLOT(deleteWordRight()),
     ac, "delete_word_right" );
+  }
 
   connect( this, SIGNAL(gotFocus(Kate::View*)),


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

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