GUI: mux: improve "file was modified, really close?" question

This commit is contained in:
Moritz Bunkus 2019-11-03 12:03:59 +01:00
parent 78576c0d4a
commit a8e5dffe7d
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -213,9 +213,9 @@ Tool::closeTab(int index) {
ui->merges->setCurrentIndex(index);
auto answer = Util::MessageBox::question(this)
->title(QY("Close modified file"))
.text(QY("The file \"%1\" has been modified. Do you really want to close? All changes will be lost.").arg(tab->title()))
.buttonLabel(QMessageBox::Yes, QY("&Close file"))
->title(QY("Close modified settings"))
.text(QY("The multiplex settings creating \"%1\" have been modified. Do you really want to close? All changes will be lost.").arg(tab->title()))
.buttonLabel(QMessageBox::Yes, QY("&Close settings"))
.buttonLabel(QMessageBox::No, QY("Cancel"))
.exec();
if (answer != QMessageBox::Yes)