# HG changeset patch # User Santeri Piippo # Date 1398697545 -10800 # Node ID 806d2baded1539a90ee8d361cdf546d6c7ce9a55 # Parent 8d4a9d03e246a1db61b741d1499c8b5a57f3bf07 - fixed: the random colors action wasn't being checked on startup if it was enabled in config, causing it to go out of sync diff -r 8d4a9d03e246 -r 806d2baded15 src/mainWindow.cc --- a/src/mainWindow.cc Mon Apr 28 18:02:43 2014 +0300 +++ b/src/mainWindow.cc Mon Apr 28 18:05:45 2014 +0300 @@ -56,11 +56,12 @@ cfg (Bool, gui_implicitfiles, false); extern_cfg (List, io_recentfiles); extern_cfg (Bool, gl_axes); -extern_cfg (String, gl_maincolor); -extern_cfg (Float, gl_maincolor_alpha); +extern_cfg (String, gl_maincolor); +extern_cfg (Float, gl_maincolor_alpha); extern_cfg (Bool, gl_wireframe); extern_cfg (Bool, gl_colorbfc); extern_cfg (Bool, gl_drawangles); +extern_cfg (Bool, gl_randomcolors); // ============================================================================= // @@ -83,27 +84,23 @@ connect (ui->objectList, SIGNAL (itemDoubleClicked (QListWidgetItem*)), this, SLOT (slot_editObject (QListWidgetItem*))); connect (m_tabs, SIGNAL (currentChanged(int)), this, SLOT (changeCurrentFile())); - // Init message log manager m_msglog = new MessageManager; m_msglog->setRenderer (R()); m_renderer->setMessageLog (m_msglog); m_quickColors = quickColorsFromConfig(); slot_selectionChanged(); setStatusBar (new QStatusBar); - - // Make certain actions checkable ui->actionAxes->setChecked (gl_axes); ui->actionWireframe->setChecked (gl_wireframe); ui->actionBFCView->setChecked (gl_colorbfc); + ui->actionRandomColors->setChecked (gl_randomcolors); updateGridToolBar(); updateEditModeActions(); updateRecentFilesMenu(); updateColorToolbar(); updateTitle(); updateActionShortcuts(); - setMinimumSize (300, 200); - connect (qApp, SIGNAL (aboutToQuit()), this, SLOT (slot_lastSecondCleanup())); // Connect all actions