From 025e1bd2fba70c646c2730dbbac26cd2395471fc Mon Sep 17 00:00:00 2001 From: snoyer Date: Sat, 9 Nov 2024 19:09:15 +0400 Subject: [PATCH] don't add filename to window title if there's no file (#1699) --- application/F3DStarter.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/F3DStarter.cxx b/application/F3DStarter.cxx index a6a9c5a4bd..2be586223a 100644 --- a/application/F3DStarter.cxx +++ b/application/F3DStarter.cxx @@ -1276,7 +1276,10 @@ void F3DStarter::LoadFileGroup( if (!this->Internals->AppOptions.NoRender) { - this->Internals->Engine->getWindow().setWindowName(filenameInfo + " - " + F3D::AppName); + if (!filenameInfo.empty()) + { + this->Internals->Engine->getWindow().setWindowName(filenameInfo + " - " + F3D::AppName); + } if (dynamicOptions.scene.camera.index.has_value()) {