summaryrefslogtreecommitdiffstats
path: root/archiveview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'archiveview.cpp')
-rw-r--r--archiveview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/archiveview.cpp b/archiveview.cpp
index 2e649f1..4d9e370 100644
--- a/archiveview.cpp
+++ b/archiveview.cpp
@@ -173,7 +173,7 @@ void ArchiveTree::rename(){
QModelIndex idx = currentIndex();
int nodeType = idx.data(ArchiveModel::TypeRole).toInt();
if(nodeType == ArchiveModel::SeriesPartNode){
- QMessageBox::critical(this, tr("Error"), tr("This function is not possible. Rename the Series instead!"));
+ impossible();
return;
}
QString currentName = idx.data(ArchiveModel::NameRole).toString();
@@ -185,6 +185,10 @@ void ArchiveTree::rename(){
}
}
+void ArchiveTree::impossible(const QString msg){
+ QMessageBox::critical(this, tr("Error"), msg);
+}
+
ArchiveProgressDialog::ArchiveProgressDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f){
QHBoxLayout *mainLayout = new QHBoxLayout;
mMessage = new QLabel;