diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index d21f84132..a2e5d8e32 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -150,13 +150,9 @@ OBSBasic::OBSBasic(QWidget *parent) ResizePreview(ovi.base_width, ovi.base_height); }); - stringstream name; - name << "OBS " << App()->GetVersionString(); - installEventFilter(CreateShortcutFilter()); - blog(LOG_INFO, "%s", name.str().c_str()); - setWindowTitle(QT_UTF8(name.str().c_str())); + UpdateTitleBar(); connect(ui->scenes->itemDelegate(), SIGNAL(closeEditor(QWidget*, @@ -3385,3 +3381,13 @@ void OBSBasic::OpenSceneProjector() OpenProjector(obs_scene_get_source(scene), monitor); } + +void OBSBasic::UpdateTitleBar() +{ + stringstream name; + + name << "OBS " << App()->GetVersionString(); + + blog(LOG_INFO, "%s", name.str().c_str()); + setWindowTitle(QT_UTF8(name.str().c_str())); +} diff --git a/obs/window-basic-main.hpp b/obs/window-basic-main.hpp index 9587b9c4a..8ee133bbb 100644 --- a/obs/window-basic-main.hpp +++ b/obs/window-basic-main.hpp @@ -270,6 +270,8 @@ public: void CreateSourcePopupMenu(QListWidgetItem *item, bool preview); + void UpdateTitleBar(); + protected: virtual void closeEvent(QCloseEvent *event) override; virtual void changeEvent(QEvent *event) override;