Gui: fix compiler warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user