aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projecttreewidget.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-06-12 14:06:13 +0200
committerEike Ziller <eike.ziller@qt.io>2018-06-13 10:39:20 +0000
commit29dd67f45e9669e31fb74ea0d115e02182f7ee71 (patch)
treea32d118a05ab08a41d315ee6c8de9a371440e059 /src/plugins/projectexplorer/projecttreewidget.cpp
parent77941ef9b3e4b20089cb0841aa47b06e6753095c (diff)
Don't select file extension when renaming resource files
Resource files would not get the handling like files do, because they are folder nodes. For folders, if they provide the rename functionality at all, the file extension can have similar influence on the type of folder like it does for files (e.g. ".app", ".framework"), so just remove that restriction. Task-number: QTCREATORBUG-20057 Change-Id: I3802f17695da9d323d4d60c14ecef5c39aeef576 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projecttreewidget.cpp')
-rw-r--r--src/plugins/projectexplorer/projecttreewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projecttreewidget.cpp b/src/plugins/projectexplorer/projecttreewidget.cpp
index ea4081698a..688c7b245c 100644
--- a/src/plugins/projectexplorer/projecttreewidget.cpp
+++ b/src/plugins/projectexplorer/projecttreewidget.cpp
@@ -421,7 +421,7 @@ void ProjectTreeWidget::editCurrentItem()
m_view->edit(currentIndex);
// Select complete file basename for renaming
const Node *node = m_model->nodeForIndex(currentIndex);
- if (!node || node->nodeType() != NodeType::File)
+ if (!node)
return;
QLineEdit *editor = qobject_cast<QLineEdit*>(m_view->indexWidget(currentIndex));
if (!editor)