summaryrefslogtreecommitdiff
path: root/noncore/settings/sound/soundsettings.cpp
authorllornkcor <llornkcor>2002-05-23 17:32:43 (UTC)
committer llornkcor <llornkcor>2002-05-23 17:32:43 (UTC)
commit486ad124967306e4a65a63f9d4bf60ea1ba38544 (patch) (side-by-side diff)
tree49077ef16f1abd0658beb6cfa06aa070e53fc21d /noncore/settings/sound/soundsettings.cpp
parent68e6e7801c5540dda00bda44222dce3e69075cc9 (diff)
downloadopie-486ad124967306e4a65a63f9d4bf60ea1ba38544.zip
opie-486ad124967306e4a65a63f9d4bf60ea1ba38544.tar.gz
opie-486ad124967306e4a65a63f9d4bf60ea1ba38544.tar.bz2
changed from QDialog, with its crappy way of closing in qpe to QMainWindow
Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index cdee87c..ed601cf 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -70,6 +70,7 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
void SoundSettings::reject()
{
+ qDebug("here");
Config config( "qpe");
config.setGroup( "Volume");
@@ -88,8 +89,8 @@ void SoundSettings::reject()
// sampleRate->setCurrentItem(3);
// stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
// sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0));
-
- QDialog::reject();
+ ::exit(-1);
+// QDialog::reject();
}
void SoundSettings::accept()
@@ -113,7 +114,8 @@ void SoundSettings::accept()
// Config cfg( "VMemo" );
// cfg.setGroup( "Defaults" );
// cfg.writeEntry( "hideIcon", HideIcon_CheckBox->isChecked());
- QDialog::accept();
+// QDialog::accept();
+ ::exit(0);
}
void SoundSettings::setVolume(int v)