- Ask for exit confirmation only if the download list is not empty

This commit is contained in:
Christophe Dumez 2007-04-04 00:47:26 +00:00
parent c6c4bc1277
commit c832d91f79
51 changed files with 5561 additions and 3657 deletions

View file

@ -5,6 +5,7 @@
- FEATURE: Allow user to change qBT's style (Plastique, Cleanlooks, Motif, CDE, MacOSX, WinXP) - FEATURE: Allow user to change qBT's style (Plastique, Cleanlooks, Motif, CDE, MacOSX, WinXP)
- FEATURE: Allow the user to disable system tray integration - FEATURE: Allow the user to disable system tray integration
- FEATURE: Search engine is now using one thread per website for faster results - FEATURE: Search engine is now using one thread per website for faster results
- FEATURE: Ask for exit confirmation only if download list is not empty
- COSMETIC: Redesigned torrent properties a little - COSMETIC: Redesigned torrent properties a little
- COSMETIC: Redesigned options a little - COSMETIC: Redesigned options a little
- COSMETIC: Display more logs messages concerning features - COSMETIC: Display more logs messages concerning features

1
TODO
View file

@ -40,7 +40,6 @@
- Display Url seeds in torrent properties and allow to edit them - Display Url seeds in torrent properties and allow to edit them
- Improve Ipfilter.dat parser (move to a thread ? - too slow to load qBT and more importantly options) - Improve Ipfilter.dat parser (move to a thread ? - too slow to load qBT and more importantly options)
- Use tooltips to explain options - Use tooltips to explain options
- Exit confirmation only if there are active downloads (display number of downloads) - SMARTER
- Display more info in log (UPnP) - Display more info in log (UPnP)
- Update to libtorrent SVN (0.13) - Update to libtorrent SVN (0.13)
- Use its UPnP/NAT-PMP built-in support instead of ours - Use its UPnP/NAT-PMP built-in support instead of ours

View file

@ -652,12 +652,12 @@ void GUI::closeEvent(QCloseEvent *e){
e->ignore(); e->ignore();
return; return;
} }
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool()){ if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool() && nbTorrents != 0){
show(); show();
showNormal(); showNormal();
if(QMessageBox::question(this, if(QMessageBox::question(this,
tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"), tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"),
tr("Are you sure you want to quit qBittorrent?"), tr("The download list is not empty.\nAre you sure you want to quit qBittorrent?"),
tr("&Yes"), tr("&No"), tr("&Yes"), tr("&No"),
QString(), 0, 1)){ QString(), 0, 1)){
e->ignore(); e->ignore();

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -62,7 +62,7 @@
<enum>QTabWidget::Rounded</enum> <enum>QTabWidget::Rounded</enum>
</property> </property>
<property name="currentIndex" > <property name="currentIndex" >
<number>0</number> <number>1</number>
</property> </property>
<property name="iconSize" > <property name="iconSize" >
<size> <size>
@ -846,7 +846,7 @@
<item> <item>
<widget class="QCheckBox" name="confirmExit_checkBox" > <widget class="QCheckBox" name="confirmExit_checkBox" >
<property name="text" > <property name="text" >
<string>Ask for confirmation on exit</string> <string>Exit confirmation when the download list is not empty</string>
</property> </property>
<property name="checked" > <property name="checked" >
<bool>true</bool> <bool>true</bool>

View file

@ -467,7 +467,7 @@ void SearchEngine::on_update_nova_button_clicked(){
curl_easy_cleanup(curl); curl_easy_cleanup(curl);
// Close tmp file // Close tmp file
fclose(file); fclose(file);
qDebug("Version on qbittorrent.org: %f", getNovaVersion(filePath)); qDebug("Version on qbittorrent.org: %.2f", getNovaVersion(filePath));
float version_on_server = getNovaVersion(filePath); float version_on_server = getNovaVersion(filePath);
if(version_on_server == 0.0){ if(version_on_server == 0.0){
//First server is down, try the mirror //First server is down, try the mirror