Browse Source

- Fixed a possible crash when saving options

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
5e57929f07
  1. BIN
      src/lang/qbittorrent_zh.qm
  2. 12
      src/lang/qbittorrent_zh.ts
  3. 2
      src/options_imp.cpp

BIN
src/lang/qbittorrent_zh.qm

Binary file not shown.

12
src/lang/qbittorrent_zh.ts

@ -513,7 +513,7 @@ Copyright © 2006 by Christophe Dumez<br> @@ -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> @@ -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"/>

2
src/options_imp.cpp

@ -521,8 +521,8 @@ void options_imp::on_okButton_clicked(){ @@ -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();

Loading…
Cancel
Save