summaryrefslogtreecommitdiffstats
path: root/archiveview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'archiveview.cpp')
-rw-r--r--archiveview.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/archiveview.cpp b/archiveview.cpp
index c376c06..ca5615c 100644
--- a/archiveview.cpp
+++ b/archiveview.cpp
@@ -260,13 +260,8 @@ void ArchiveTree::setModel(ArchiveProxy *model){
QTreeView::setModel(model);
}
-void ArchiveTree::rename(){
+void ArchiveTree::edit(){
QModelIndex idx = currentIndex();
- /*int nodeType = idx.data(ArchiveModel::TypeRole).toInt();
- if(nodeType == ArchiveModel::SeriesPartNode){
- impossible();
- return;
- }*/
QString currentName = idx.data(ArchiveModel::NameRole).toString();
QString question = QString(tr("Rename %1 to:")).arg(currentName);
QString newName = QInputDialog::getText(this, tr("Rename"), question, QLineEdit::Normal, currentName);