Skip to content

Commit

Permalink
Fixed reload button implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorwin committed Jul 23, 2021
1 parent 1e5881f commit 29c99d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JacobianMatrixViewer/src/MainDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ void MainDialog::on_toolButtonReloadFirstMatrix_clicked() {
void MainDialog::on_toolButtonReloadSecondMatrix_clicked() {
QString openFile = ui->lineEditOtherMatrixFile->text();
if (openFile.isEmpty()) return;
readMatrix(m_mainMatrix, openFile);
if (m_mainMatrix.dimension() == 0)
readMatrix(m_otherMatrix, openFile);
if (m_otherMatrix.dimension() == 0)
QMessageBox::critical(this, QString(), tr("Cannot read file '%1'").arg(openFile));
updateView();
}
2 changes: 1 addition & 1 deletion JacobianMatrixViewer/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <IBK_ArgParser.h>
#include <IBK_BuildFlags.h>

const char * const LONG_VERSION = "1.0.0";
const char * const LONG_VERSION = "1.0.1";

/*! qDebug() message handler function, redirects debug messages to IBK::IBK_Message(). */
void qDebugMsgHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) {
Expand Down
Binary file modified data/jacobian_dense.bin
Binary file not shown.
Binary file modified data/jacobian_sparse.bin
Binary file not shown.

0 comments on commit 29c99d0

Please sign in to comment.