]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Re-enable renaming items with the rename dialog
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 12 Sep 2012 19:13:26 +0000 (21:13 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 12 Sep 2012 19:19:41 +0000 (21:19 +0200)
User feedback has shown that many users used the dialog for renaming
files. Since the dialog is still used when renaming multiple files, I
think there is no good reason not to use it for renaming single files
as well if the user wants.

Note that we cannot add an option in the settings dialog due to string
freeze issues. For the time being, you will have to add the line
"RenameInline=false" to the [General] section of
$KDEHOME/share/config/dolphinrc.

BUG: 304627
FIXED-IN: 4.9.2

src/settings/dolphin_generalsettings.kcfg
src/views/dolphinview.cpp

index 9f261dc5f417f3e87cca4cd8b5d68dcda727bd44..05075019931266af40a1b9bc25093778e56ce0fa 100644 (file)
             <label>Ask for confirmation when closing windows with multiple tabs.</label>
             <default>true</default>
         </entry>
+        <entry name="RenameInline" type="Bool">
+            <label>Rename inline</label>
+            <default>true</default>
+        </entry>
         <entry name="ShowSelectionToggle" type="Bool">
             <label>Show selection toggle</label>
             <default>true</default>
index 72ccb8372ca4d3c541981066b605ede13fdb00fe..b5dba04ad1690aec7bf1d02968bf37f636dfc2a9 100644 (file)
@@ -635,7 +635,7 @@ void DolphinView::renameSelectedItems()
          return;
      }
 
-     if (items.count() == 1) {
+     if (items.count() == 1 && GeneralSettings::renameInline()) {
          const int index = m_model->index(items.first());
          m_view->editRole(index, "text");
      } else {