- Fixed a possible crash when saving options

This commit is contained in:
Christophe Dumez 2007-03-11 00:55:48 +00:00
parent a4deec6cde
commit 5e57929f07
3 changed files with 7 additions and 7 deletions

Binary file not shown.

View File

@ -513,7 +513,7 @@ Copyright © 2006 by Christophe Dumez<br>
<message>
<location filename="../options.ui" line="508"/>
<source>Disable DHT (Trackerless)</source>
<translation type="unfinished"></translation>
<translation>DHT(Tracker)</translation>
</message>
<message>
<location filename="../options.ui" line="579"/>
@ -1105,30 +1105,30 @@ Please close the other one first.</source>
<location filename="../GUI.cpp" line="464"/>
<source>UP speed: %1 KiB/s</source>
<comment>e.g: Upload speed: 10 KiB/s</comment>
<translation type="unfinished"></translation>
<translation type="unfinished"> : %1 KiB/s</translation>
</message>
<message>
<location filename="../GUI.cpp" line="491"/>
<source>Finished</source>
<comment>i.e: Torrent has finished downloading</comment>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../GUI.cpp" line="500"/>
<source>Checking...</source>
<comment>i.e: Checking already downloaded parts...</comment>
<translation type="unfinished">...</translation>
<translation>...</translation>
</message>
<message>
<location filename="../GUI.cpp" line="530"/>
<source>Stalled</source>
<comment>i.e: State of a torrent whose download speed is 0kb/s</comment>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../GUI.cpp" line="816"/>
<source>Are you sure you want to quit?</source>
<translation type="unfinished"></translation>
<translation>退?</translation>
</message>
<message>
<location filename="../GUI.cpp" line="1003"/>

View File

@ -521,8 +521,8 @@ void options_imp::on_okButton_clicked(){
saveOptions();
applyButton->setEnabled(false);
// set infobar text
emit status_changed(tr("Options were saved successfully."), true);
this->hide();
emit status_changed(tr("Options were saved successfully."), true);
}else{
setAttribute(Qt::WA_DeleteOnClose);
accept();