fixed startMinized now it works

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1209 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-05-09 13:38:46 +00:00
parent dab5ae98f8
commit 281f4b95f3
3 changed files with 30 additions and 63 deletions

View file

@ -1,7 +1,7 @@
/****************************************************************
* This file is distributed under the following license:
*
* Copyright (c) 2006-2007, crypton
* This file is distributed under the following license:
*
* Copyright (c) 2006-2007, crypton
* Copyright (c) 2006, Matt Edman, Justin Hipple
*
* This program is free software; you can redistribute it and/or
@ -35,17 +35,7 @@ GeneralDialog::GeneralDialog(QWidget *parent)
/* Create RshareSettings object */
_settings = new RshareSettings();
if (QSystemTrayIcon::isSystemTrayAvailable()){
/* Check if we are supposed to show our main window on startup */
ui.chkShowOnStartup->setChecked(_settings->showMainWindowAtStart());
if (ui.chkShowOnStartup->isChecked())
show();
} else {
/* Don't let people hide the main window, since that's all they have. */
ui.chkShowOnStartup->hide();
show();
}
/* Hide platform specific features */
#ifndef Q_WS_WIN
ui.chkRunRetroshareAtSystemStartup->setVisible(false);

View file

@ -5,8 +5,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>431</width>
<height>250</height>
<width>413</width>
<height>267</height>
</rect>
</property>
<property name="minimumSize" >
@ -552,53 +552,27 @@
</size>
</property>
<property name="title" >
<string>Misc</string>
<string>Startup</string>
</property>
<widget class="QCheckBox" name="chkShowOnStartup" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>401</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Show MainWindow at Startup</string>
</property>
<property name="checked" >
<bool>false</bool>
</property>
</widget>
<widget class="QCheckBox" name="checkStartMinimized" >
<property name="geometry" >
<rect>
<x>10</x>
<y>60</y>
<width>401</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Start minimized</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
<widget class="QCheckBox" name="chkRunRetroshareAtSystemStartup" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>411</width>
<height>18</height>
</rect>
</property>
<property name="text" >
<string>Start RetroShare when my system starts</string>
</property>
</widget>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="chkRunRetroshareAtSystemStartup" >
<property name="text" >
<string>Start RetroShare when my system starts</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QCheckBox" name="checkStartMinimized" >
<property name="text" >
<string>Start minimized</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0" >