Skip to content

Commit

Permalink
Revert part of #2661 to fix the mainwindow icon (#2665)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca authored Jul 17, 2024
1 parent 03a8df1 commit d169ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/kvilib/tal/KviTalApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ KviTalApplication::KviTalApplication(int & iArgc, char ** ppcArgv)
{
// Session management has been broken by source incompatible changes.
QObject::connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(commitData(QSessionManager &)));

// set name of the app desktop file; used by wayland to load the window icon
QGuiApplication::setDesktopFileName("net.kvirc.KVIrc" KVIRC_VERSION_MAJOR);
}

KviTalApplication::~KviTalApplication()
Expand Down
3 changes: 3 additions & 0 deletions src/kvirc/ui/KviMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ KviMainWindow::KviMainWindow(QWidget * pParent)
// We try to avois this as much as possible, since it forces the use of the low-res 16x16 icon
setWindowIcon(*(g_pIconManager->getSmallIcon(KviIconManager::KVIrc)));
#endif
// set name of the app desktop file; used by wayland to load the window icon
QGuiApplication::setDesktopFileName("net.kvirc.KVIrc" KVIRC_VERSION_MAJOR);

setWindowTitle(KVI_DEFAULT_FRAME_CAPTION);

m_pSplitter = new QSplitter(Qt::Horizontal, this);
Expand Down

0 comments on commit d169ba8

Please sign in to comment.