Skip to content

Commit e6db11d

Browse files
committed
Update reload behavior
1 parent 725573e commit e6db11d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extras/wrlview/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project(wrlview VERSION 0.2.1)
1+
project(wrlview VERSION 0.2.2)
22

33
if(NOT PROJECT_VERSION_TWEAK)
44
set(PROJECT_VERSION_TWEAK 0)

extras/wrlview/MainWindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,11 @@ MainWindow::load(const QString filename)
654654
if (nullptr != this->scene)
655655
{
656656
this->root->removeChild(this->scene);
657-
this->filename.clear();
658-
this->setWindowTitle("wrlview");
659657
}
660658

659+
this->filename = absoluteFilename;
660+
this->setWindowTitle("wrlview");
661+
661662
#if defined(HAVE_SOSTLFILEKIT_H) && defined(HAVE_SOSTLFILEKIT_CONVERT)
662663
if (absoluteFilename.endsWith(".stl", Qt::CaseInsensitive))
663664
{
@@ -695,7 +696,6 @@ MainWindow::load(const QString filename)
695696
}
696697

697698
this->root->addChild(this->scene);
698-
this->filename = absoluteFilename;
699699
this->setWindowTitle(absoluteFilename + " - wrlview");
700700
}
701701

0 commit comments

Comments
 (0)