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

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       Peter Penz <peter.penz19 () gmail ! com>
Date:       2011-01-21 20:44:18
Message-ID: 20110121204418.A93CEAC8B9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1216195 by ppenz:

When editing the name of file items opening a context-menu for the text-editor may \
not result in closing the rename-operation. Thanks to Zé for the patch!

CCBUG: 182353


 M  +6 -0      kfileitemdelegate.cpp  


--- trunk/KDE/kdelibs/kio/kio/kfileitemdelegate.cpp #1216194:1216195
@@ -1666,10 +1666,16 @@
 
     case QEvent::FocusOut:
     {
+        const QWidget *w = QApplication::activePopupWidget();
+        if (!w || w->parent() != editor)
+        {
         emit commitData(editor);
         emit closeEditor(editor, NoHint);
         return true;
     }
+        else
+            return false;
+    }
 
     default:
         return false;


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

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