--- main_window.cc.orig 2008-01-10 17:56:35 +0300 +++ main_window.cc 2009-05-19 14:19:18 +0400 @@ -105,10 +105,10 @@ QSettings settings(QSettings::IniFormat, QSettings::UserScope, "alterator", "browser", this); settings.setFallbacksEnabled(false); settings.beginGroup("qt"); - int wnd_x = settings.value("main_window_x", 0).toInt(); - int wnd_y = settings.value("main_window_y", 0).toInt(); int wnd_width = settings.value("main_window_width", wnd_recom_width).toInt(); int wnd_height = settings.value("main_window_height", wnd_recom_height).toInt(); + int wnd_x = settings.value("main_window_x", (int)(desktop_geom.width()/2 - (wnd_width/2))).toInt(); + int wnd_y = settings.value("main_window_y", (int)(desktop_geom.height()/2 - (wnd_height/2))).toInt(); settings.endGroup(); geometry_ = QRect(wnd_x, wnd_y, wnd_width, wnd_height);