Gui: fix compiler warning

This commit is contained in:
wmayer
2024-04-01 15:06:49 +02:00
committed by wwmayer
parent a4cd7f6012
commit b1a0a3edc8

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;