Changeset View
Changeset View
Standalone View
Standalone View
src/panels/folders/folderspanel.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | |||||
100 | 100 | | |||
101 | void FoldersPanel::rename(const KFileItem& item) | 101 | void FoldersPanel::rename(const KFileItem& item) | ||
102 | { | 102 | { | ||
103 | if (GeneralSettings::renameInline()) { | 103 | if (GeneralSettings::renameInline()) { | ||
104 | const int index = m_model->index(item); | 104 | const int index = m_model->index(item); | ||
105 | m_controller->view()->editRole(index, "text"); | 105 | m_controller->view()->editRole(index, "text"); | ||
106 | } else { | 106 | } else { | ||
107 | RenameDialog* dialog = new RenameDialog(this, KFileItemList() << item); | 107 | RenameDialog* dialog = new RenameDialog(this, KFileItemList() << item); | ||
108 | dialog->show(); | 108 | dialog->open(); | ||
109 | dialog->raise(); | | |||
110 | dialog->activateWindow(); | | |||
111 | } | 109 | } | ||
112 | } | 110 | } | ||
113 | 111 | | |||
114 | bool FoldersPanel::urlChanged() | 112 | bool FoldersPanel::urlChanged() | ||
115 | { | 113 | { | ||
116 | if (!url().isValid() || url().scheme().contains(QStringLiteral("search"))) { | 114 | if (!url().isValid() || url().scheme().contains(QStringLiteral("search"))) { | ||
117 | // Skip results shown by a search, as possible identical | 115 | // Skip results shown by a search, as possible identical | ||
118 | // directory names are useless without parent-path information. | 116 | // directory names are useless without parent-path information. | ||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |