Gui: fix compiler warning

This commit is contained in:
wmayer
2024-04-01 19:42:08 +02:00
committed by wwmayer
parent 4b18a1018b
commit ac1d887336
+2 -2
View File
@@ -451,8 +451,8 @@ void MDIView::setCurrentViewMode(ViewMode mode)
QString MDIView::buildWindowTitle() const
{
QString windowTitle;
if (Gui::Document* document = getGuiDocument()) {
windowTitle.append(QString::fromStdString(getAppDocument()->Label.getStrValue()));
if (auto document = getAppDocument()) {
windowTitle.append(QString::fromStdString(document->Label.getStrValue()));
}
return windowTitle;