summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-03-28 07:42:56 (UTC)
committer harlekin <harlekin>2003-03-28 07:42:56 (UTC)
commit827e06044df4df235912156c730baa3c87717526 (patch) (side-by-side diff)
treeb4cc79ed55e987d1fc6a6c30140950ef4e4ec4f1
parent39a71f2dfcb0116554d2806735adb394847a2027 (diff)
downloadopie-827e06044df4df235912156c730baa3c87717526.zip
opie-827e06044df4df235912156c730baa3c87717526.tar.gz
opie-827e06044df4df235912156c730baa3c87717526.tar.bz2
close mediummount on exit .-)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/mainwindow.cc7
-rw-r--r--noncore/settings/mediummount/mainwindow.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/noncore/settings/mediummount/mainwindow.cc b/noncore/settings/mediummount/mainwindow.cc
index bfd1e21..6b37cff 100644
--- a/noncore/settings/mediummount/mainwindow.cc
+++ b/noncore/settings/mediummount/mainwindow.cc
@@ -56,20 +56,27 @@ void MainWindow::accept()
{
m_global->writeConfig();
MediumMountWidget *confWidget;
for ( confWidget = m_mediums.first(); confWidget != 0;
confWidget = m_mediums.next() ) {
confWidget->writeConfig();
}
QDialog::accept();
}
+void MainWindow::done ( int r )
+{
+ QDialog::done( r );
+ close ();
+}
+
+
void MainWindow::slotGlobalChanged(int )
{
}
void MainWindow::slotCheckingChanged(int )
{
}
diff --git a/noncore/settings/mediummount/mainwindow.h b/noncore/settings/mediummount/mainwindow.h
index 9c648ef..71dac79 100644
--- a/noncore/settings/mediummount/mainwindow.h
+++ b/noncore/settings/mediummount/mainwindow.h
@@ -13,22 +13,23 @@ namespace MediumMountSetting {
class MediumMountWidget;
class MediumGlobalWidget;
class MainWindow : public QDialog {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0, const char *name = 0 , bool modal = FALSE, WFlags = 0);
~MainWindow();
private slots:
void slotGlobalChanged(int );
void slotCheckingChanged(int );
void accept();
+ void done( int );
private:
void init();
QTabWidget *m_tab;
QVBoxLayout *m_lay;
MediumGlobalWidget *m_global;
QList<MediumMountWidget> m_mediums;
};
};
#endif