Skip to content

Commit

Permalink
fix: in the Save menu, the cancel button causes an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigmdm committed Aug 12, 2024
1 parent 57e47a9 commit 70006fa
Show file tree
Hide file tree
Showing 9 changed files with 682 additions and 680 deletions.
170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_de_DE.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_es_ES.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_hu_HU.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_it_IT.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_pt_BR.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_ru_RU.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_uk_UA.ts

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions IMSProg_programmer/language/chipProgrammer_zh_CN.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions IMSProg_programmer/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ void MainWindow::on_actionSave_triggered()
QString(tr("Save file")),
lastDirectory,
"Data Images (*.bin *.BIN);;All files (*.*)");
if (fileName.isEmpty()) return;
QFileInfo info(fileName);
lastDirectory = info.filePath();

Expand Down Expand Up @@ -1226,6 +1227,7 @@ void MainWindow::receiveAddr(QString addressData)
QFileInfo info(fileName);
lastDirectory = info.filePath();
if (QString::compare(info.suffix(), "bin", Qt::CaseInsensitive)) fileName = fileName + ".bin";
if (fileName.isEmpty()) return;
QFile file(fileName);
if (!file.open(QIODevice::WriteOnly))
{
Expand Down

0 comments on commit 70006fa

Please sign in to comment.