From 45e86d3bec68d027f0333c3d9aeda1e146071197 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Mon, 23 Dec 2019 13:57:50 +0100 Subject: [PATCH] Clean-up and better message in openDataWithExternal Related issue #1791 --- src/EditDialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/EditDialog.cpp b/src/EditDialog.cpp index 23ffb318..de749336 100644 --- a/src/EditDialog.cpp +++ b/src/EditDialog.cpp @@ -1182,7 +1182,6 @@ void EditDialog::setWordWrapping(bool value) void EditDialog::openDataWithExternal() { QString extension; - QStringList filters; switch (dataType) { case Image: { // Images get special treatment. @@ -1224,11 +1223,9 @@ void EditDialog::openDataWithExternal() file.write(hexEdit->data()); break; case SciBuffer: - // Data source is the Scintilla buffer file.write(sciEdit->text().toUtf8()); break; case QtBuffer: - // Data source is the text buffer file.write(ui->qtEdit->toPlainText().toUtf8()); break; } @@ -1240,7 +1237,7 @@ void EditDialog::openDataWithExternal() (nullptr, QApplication::applicationName(), tr("The data has been saved to a temporary file and has been opened with the default application." - "You can edit now the file and when your are ready, you can apply the saved new data to the cell or cancel any changes."), + "You can edit now the file and when your are ready, you can apply the saved new data to the cell editor or cancel any changes."), QMessageBox::Apply | QMessageBox::Cancel); QFile readFile(file.fileName());