Diffstat (limited to 'noncore/settings/mediummount/mediumwidget.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/mediummount/mediumwidget.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/noncore/settings/mediummount/mediumwidget.cc b/noncore/settings/mediummount/mediumwidget.cc index 04e4e7c..f98e637 100644 --- a/noncore/settings/mediummount/mediumwidget.cc +++ b/noncore/settings/mediummount/mediumwidget.cc | |||
@@ -36,7 +36,7 @@ MediumMountWidget::MediumMountWidget(const QString &path, | |||
36 | m_path = path; | 36 | m_path = path; |
37 | initGUI(); | 37 | initGUI(); |
38 | m_label->setPixmap(pix ); | 38 | m_label->setPixmap(pix ); |
39 | m_config = 0; | 39 | m_config = 0; |
40 | 40 | ||
41 | readConfig(); | 41 | readConfig(); |
42 | } | 42 | } |
@@ -81,7 +81,7 @@ void MediumMountWidget::initGUI() | |||
81 | m_text = new QCheckBox( tr("Text") , m_group ); | 81 | m_text = new QCheckBox( tr("Text") , m_group ); |
82 | m_video = new QCheckBox( tr("Video"), m_group ); | 82 | m_video = new QCheckBox( tr("Video"), m_group ); |
83 | 83 | ||
84 | QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed, | 84 | QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed, |
85 | QSizePolicy::Fixed ); | 85 | QSizePolicy::Fixed ); |
86 | m_checks->addItem( iti1b, 0, 0 ); | 86 | m_checks->addItem( iti1b, 0, 0 ); |
87 | 87 | ||
@@ -96,7 +96,7 @@ void MediumMountWidget::initGUI() | |||
96 | m_checks->addColSpacing(1, 2 ); | 96 | m_checks->addColSpacing(1, 2 ); |
97 | m_checks->setColStretch(1, -2 ); | 97 | m_checks->setColStretch(1, -2 ); |
98 | 98 | ||
99 | connect(m_all, SIGNAL(stateChanged(int) ), | 99 | connect(m_all, SIGNAL(stateChanged(int) ), |
100 | this, SLOT(slotStateChanged() ) ); | 100 | this, SLOT(slotStateChanged() ) ); |
101 | 101 | ||
102 | m_box->addWidget( m_group ); | 102 | m_box->addWidget( m_group ); |
@@ -143,7 +143,7 @@ void MediumMountWidget::readConfig( ) | |||
143 | m_audio->setEnabled( true ); | 143 | m_audio->setEnabled( true ); |
144 | m_image->setEnabled( true ); | 144 | m_image->setEnabled( true ); |
145 | m_text->setEnabled ( true ); | 145 | m_text->setEnabled ( true ); |
146 | m_all->setEnabled ( true ); | 146 | m_all->setEnabled ( true ); |
147 | 147 | ||
148 | m_all->setChecked( false ); | 148 | m_all->setChecked( false ); |
149 | 149 | ||
@@ -171,11 +171,9 @@ void MediumMountWidget::writeConfig() | |||
171 | } | 171 | } |
172 | MediumMountWidget::~MediumMountWidget() | 172 | MediumMountWidget::~MediumMountWidget() |
173 | { | 173 | { |
174 | writeConfig(); | ||
175 | delete m_config; | 174 | delete m_config; |
176 | } | 175 | } |
177 | 176 | ||
178 | |||
179 | void MediumMountWidget::slotAdd() | 177 | void MediumMountWidget::slotAdd() |
180 | { | 178 | { |
181 | 179 | ||