Skip to content

Commit

Permalink
Merge pull request #92 from scharlton2/91-input-causes-crash
Browse files Browse the repository at this point in the history
91 input causes crash
  • Loading branch information
scharlton2 authored Oct 3, 2023
2 parents 9854714 + 4318017 commit 9bb476f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions QModelViewer/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ void MainWindow::createActions()
//const QIcon newIcon = QIcon::fromTheme("document-new", QIcon(":/images/new.png"));
newAct = new QAction(/* newIcon, */ tr("&New..."), this);
newAct->setShortcuts(QKeySequence::New);
newAct->setStatusTip(tr("Create a new mvmv6 file"));
newAct->setStatusTip(tr("Create a new mvmf6 file"));
connect(newAct, &QAction::triggered, this, &MainWindow::onFileNew);

// File->Open...
openAct = new QAction(tr("&Open..."), this);
openAct->setShortcuts(QKeySequence::Open);
openAct->setStatusTip(tr("Open an existing mvmv6 file"));
openAct->setStatusTip(tr("Open an existing mvmf6 file"));
connect(openAct, &QAction::triggered, this, &MainWindow::onFileOpen);

// File->Close
closeAct = new QAction(tr("&Close"), this);
closeAct->setShortcuts(QKeySequence::Close);
closeAct->setStatusTip(tr("Close the current mvmv6 file"));
closeAct->setStatusTip(tr("Close the current mvmf6 file"));
connect(closeAct, &QAction::triggered, this, &MainWindow::onFileClose);

// File->Save
Expand Down
2 changes: 1 addition & 1 deletion mv/mvModelFeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ void mvModelFeatures::Update()
m_UnstructuredGrid->SetPoints(m_GridPoints);
m_UnstructuredGrid->Modified();
}
else
else if (m_StructuredGrid)
{
m_StructuredGrid->SetDimensions(m_Dim[0], m_Dim[1], m_Dim[2]);
m_StructuredGrid->SetPoints(m_GridPoints);
Expand Down

0 comments on commit 9bb476f

Please sign in to comment.