Skip to content

Commit

Permalink
Gui: fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 1, 2024
1 parent 4b18a10 commit ac1d887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/MDIView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac1d887

Please sign in to comment.