# HG changeset patch # User Torsten # Date 1385404062 -3600 # Node ID 67978cb5d2691951ab793dd2ef96e3aed21173ea # Parent a51e4904ca1bfdbfeff983b55feb2b5c0ea898e9 fix icons for the release and community windows * main-window.cc (display_release_notes): set actual window icon for already existing window, too (display_community_news): use same icon for communiy as for release window diff -r a51e4904ca1b -r 67978cb5d269 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Mon Nov 25 19:10:48 2013 +0100 +++ b/libgui/src/main-window.cc Mon Nov 25 19:27:42 2013 +0100 @@ -326,7 +326,6 @@ release_notes_window->setLayout (vlayout); release_notes_window->setWindowTitle (tr ("Octave Release Notes")); - release_notes_window->setWindowIcon (QIcon (_release_notes_icon)); browser->document()->adjustSize (); QSize doc_size = browser->document()->size().toSize (); @@ -344,6 +343,8 @@ else if (release_notes_window->isMinimized ()) release_notes_window->showNormal (); + release_notes_window->setWindowIcon (QIcon (_release_notes_icon)); + release_notes_window->raise (); release_notes_window->activateWindow (); } @@ -511,7 +512,6 @@ community_news_window->setLayout (vlayout); community_news_window->setWindowTitle (tr ("Octave Community News")); - community_news_window->setWindowIcon (QIcon (":/icons/logo.png")); community_news_window->resize (640, 480); int win_x = QApplication::desktop ()->width (); int win_y = QApplication::desktop ()->height (); @@ -524,6 +524,9 @@ else if (community_news_window->isMinimized ()) community_news_window->showNormal (); + // same icon as release notes + community_news_window->setWindowIcon (QIcon (_release_notes_icon)); + community_news_window->raise (); community_news_window->activateWindow (); }