mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Fixed a possible crash when saving options
This commit is contained in:
Binary file not shown.
@@ -513,7 +513,7 @@ Copyright © 2006 by Christophe Dumez<br>
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../options.ui" line="508"/>
|
<location filename="../options.ui" line="508"/>
|
||||||
<source>Disable DHT (Trackerless)</source>
|
<source>Disable DHT (Trackerless)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>禁用DHT(分布式Tracker)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../options.ui" line="579"/>
|
<location filename="../options.ui" line="579"/>
|
||||||
@@ -1105,30 +1105,30 @@ Please close the other one first.</source>
|
|||||||
<location filename="../GUI.cpp" line="464"/>
|
<location filename="../GUI.cpp" line="464"/>
|
||||||
<source>UP speed: %1 KiB/s</source>
|
<source>UP speed: %1 KiB/s</source>
|
||||||
<comment>e.g: Upload speed: 10 KiB/s</comment>
|
<comment>e.g: Upload speed: 10 KiB/s</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"> 上传速度: %1 KiB/s</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../GUI.cpp" line="491"/>
|
<location filename="../GUI.cpp" line="491"/>
|
||||||
<source>Finished</source>
|
<source>Finished</source>
|
||||||
<comment>i.e: Torrent has finished downloading</comment>
|
<comment>i.e: Torrent has finished downloading</comment>
|
||||||
<translation type="unfinished">完成</translation>
|
<translation>完成</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../GUI.cpp" line="500"/>
|
<location filename="../GUI.cpp" line="500"/>
|
||||||
<source>Checking...</source>
|
<source>Checking...</source>
|
||||||
<comment>i.e: Checking already downloaded parts...</comment>
|
<comment>i.e: Checking already downloaded parts...</comment>
|
||||||
<translation type="unfinished">检查中...</translation>
|
<translation>检查中...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../GUI.cpp" line="530"/>
|
<location filename="../GUI.cpp" line="530"/>
|
||||||
<source>Stalled</source>
|
<source>Stalled</source>
|
||||||
<comment>i.e: State of a torrent whose download speed is 0kb/s</comment>
|
<comment>i.e: State of a torrent whose download speed is 0kb/s</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation>等待中</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../GUI.cpp" line="816"/>
|
<location filename="../GUI.cpp" line="816"/>
|
||||||
<source>Are you sure you want to quit?</source>
|
<source>Are you sure you want to quit?</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>确实要退出吗?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../GUI.cpp" line="1003"/>
|
<location filename="../GUI.cpp" line="1003"/>
|
||||||
|
|||||||
@@ -521,8 +521,8 @@ void options_imp::on_okButton_clicked(){
|
|||||||
saveOptions();
|
saveOptions();
|
||||||
applyButton->setEnabled(false);
|
applyButton->setEnabled(false);
|
||||||
// set infobar text
|
// set infobar text
|
||||||
emit status_changed(tr("Options were saved successfully."), true);
|
|
||||||
this->hide();
|
this->hide();
|
||||||
|
emit status_changed(tr("Options were saved successfully."), true);
|
||||||
}else{
|
}else{
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
accept();
|
accept();
|
||||||
|
|||||||
Reference in New Issue
Block a user