Bug 57024 - "cut" often disabled when text selected
Summary: "cut" often disabled when text selected
Status: RESOLVED FIXED
Alias: None
Product: calligrastage
Classification: Applications
Component: general (show other bugs)
Version: 1.2.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-09 02:39 UTC by klee
Modified: 2003-12-14 19:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description klee 2003-04-09 02:39:06 UTC
Version:           1.2.1 (using KDE KDE 3.1)
Installed from:    Unlisted Binary Package
OS:          Linux

Frequently when I'm editing text, the "cut" action is disabled even though text is selected.  How to duplicate:

+ Create an empty presentation.
+ Create a new text box.
+ Type some text.
+ Click outside the text box with the mouse (this stops editing and deselects the text box)
+ Double-click on the text box to put it in edit mode.
+ Select some text with the mouse.
+ Try to "cut" this text.

On 1.2.1, this fails 100% of the time.
Comment 1 Lukáš Tinkl 2003-04-09 15:33:40 UTC
Confirmed. 
Strange that the "Cut" action is properly enabled when one selects the text with 
keyboard... 
Comment 2 Lukáš Tinkl 2003-04-09 16:28:57 UTC
Subject: koffice/kpresenter

CVS commit by lukas: 

fix bug 57024: "cut" often disabled when text selected 

CCMAIL: 57024-done@bugs.kde.org


  M +7 -5      kpresenter_view.cc   1.963


--- koffice/kpresenter/kpresenter_view.cc  #1.962:1.963
@@ -3306,5 +3306,5 @@ void KPresenterView::objectSelectedChang
         KPObject *obj=m_canvas->getSelectedObj();
         //disable this action when we select a header/footer
-        if(obj==m_pKPresenterDoc->header() ||obj==m_pKPresenterDoc->footer())
+        if(obj==m_pKPresenterDoc->header() || obj==m_pKPresenterDoc->footer())
             headerfooterselected=true;
         else
@@ -6711,10 +6711,11 @@ void KPresenterView::slotObjectEditChang
     {
         double leftMargin =edit->currentParagLayout().margins[QStyleSheetItem::MarginLeft];
-        actionTextDepthMinus->setEnabled( val && leftMargin>0);
+        actionTextDepthMinus->setEnabled(val && leftMargin>0);
         hasSelection = edit->textObject()->hasSelection();
+        actionEditCut->setEnabled(hasSelection);
     }
     actionCreateStyleFromSelection->setEnabled((edit!=0)&& hasSelection);
 
-    actionChangeCase->setEnabled( (val && rw && hasSelection ) || (rw && !edit && isText));
+    actionChangeCase->setEnabled( (val && rw && hasSelection ) || (rw && !edit && isText) );
 
     if(!edit)
@@ -6726,5 +6727,5 @@ void KPresenterView::slotObjectEditChang
             KPObject *obj=m_canvas->getSelectedObj();
             //disable this action when we select a header/footer
-            if(obj==m_pKPresenterDoc->header() ||obj==m_pKPresenterDoc->footer())
+            if(obj==m_pKPresenterDoc->header() || obj==m_pKPresenterDoc->footer())
                 headerfooterselected=true;
             else