mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
BUGFIX: Only one log window can be opened at a time
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
- BUGFIX: Fix save path display in properties
|
- BUGFIX: Fix save path display in properties
|
||||||
- BUGFIX: Fix ratio calculation for directly seeded torrents (Thanks phorane)
|
- BUGFIX: Fix ratio calculation for directly seeded torrents (Thanks phorane)
|
||||||
- BUGFIX: Fix memory leak in RSS parser
|
- BUGFIX: Fix memory leak in RSS parser
|
||||||
|
- BUGFIX: Only one log window can be opened at a time
|
||||||
|
|
||||||
* Web Feb 10 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.5
|
* Web Feb 10 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.5
|
||||||
- BUGFIX: Fix actions on selected torrents (non-selected torrents could be affected)
|
- BUGFIX: Fix actions on selected torrents (non-selected torrents could be affected)
|
||||||
|
|||||||
14
src/GUI.cpp
14
src/GUI.cpp
@@ -217,7 +217,10 @@ GUI::~GUI() {
|
|||||||
delete status_bar;
|
delete status_bar;
|
||||||
delete transferList;
|
delete transferList;
|
||||||
delete guiUpdater;
|
delete guiUpdater;
|
||||||
|
if (console)
|
||||||
|
delete console;
|
||||||
|
if(options)
|
||||||
|
delete options;
|
||||||
if(rssWidget)
|
if(rssWidget)
|
||||||
delete rssWidget;
|
delete rssWidget;
|
||||||
delete searchEngine;
|
delete searchEngine;
|
||||||
@@ -420,7 +423,11 @@ void GUI::on_actionSet_global_upload_limit_triggered() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GUI::on_actionShow_console_triggered() {
|
void GUI::on_actionShow_console_triggered() {
|
||||||
new consoleDlg(this, BTSession);
|
if(!console) {
|
||||||
|
console = new consoleDlg(this, BTSession);
|
||||||
|
} else {
|
||||||
|
console->setFocus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::on_actionSet_global_download_limit_triggered() {
|
void GUI::on_actionSet_global_download_limit_triggered() {
|
||||||
@@ -911,6 +918,9 @@ void GUI::on_actionOptions_triggered() {
|
|||||||
if(!options) {
|
if(!options) {
|
||||||
options = new options_imp(this);
|
options = new options_imp(this);
|
||||||
connect(options, SIGNAL(status_changed()), this, SLOT(optionsSaved()));
|
connect(options, SIGNAL(status_changed()), this, SLOT(optionsSaved()));
|
||||||
|
} else {
|
||||||
|
// Get focus
|
||||||
|
options->setFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class TransferListFiltersWidget;
|
|||||||
class QSplitter;
|
class QSplitter;
|
||||||
class PropertiesWidget;
|
class PropertiesWidget;
|
||||||
class StatusBar;
|
class StatusBar;
|
||||||
|
class consoleDlg;
|
||||||
|
|
||||||
class GUI : public QMainWindow, private Ui::MainWindow{
|
class GUI : public QMainWindow, private Ui::MainWindow{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -68,6 +69,7 @@ private:
|
|||||||
QTabWidget *tabs;
|
QTabWidget *tabs;
|
||||||
StatusBar *status_bar;
|
StatusBar *status_bar;
|
||||||
QPointer<options_imp> options;
|
QPointer<options_imp> options;
|
||||||
|
QPointer<consoleDlg> console;
|
||||||
QPointer<QSystemTrayIcon> systrayIcon;
|
QPointer<QSystemTrayIcon> systrayIcon;
|
||||||
QPointer<QTimer> systrayCreator;
|
QPointer<QTimer> systrayCreator;
|
||||||
QMenu *myTrayIconMenu;
|
QMenu *myTrayIconMenu;
|
||||||
|
|||||||
Reference in New Issue
Block a user