mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -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 ratio calculation for directly seeded torrents (Thanks phorane)
|
||||
- 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
|
||||
- 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 transferList;
|
||||
delete guiUpdater;
|
||||
|
||||
if (console)
|
||||
delete console;
|
||||
if(options)
|
||||
delete options;
|
||||
if(rssWidget)
|
||||
delete rssWidget;
|
||||
delete searchEngine;
|
||||
@@ -420,7 +423,11 @@ void GUI::on_actionSet_global_upload_limit_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() {
|
||||
@@ -911,6 +918,9 @@ void GUI::on_actionOptions_triggered() {
|
||||
if(!options) {
|
||||
options = new options_imp(this);
|
||||
connect(options, SIGNAL(status_changed()), this, SLOT(optionsSaved()));
|
||||
} else {
|
||||
// Get focus
|
||||
options->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ class TransferListFiltersWidget;
|
||||
class QSplitter;
|
||||
class PropertiesWidget;
|
||||
class StatusBar;
|
||||
class consoleDlg;
|
||||
|
||||
class GUI : public QMainWindow, private Ui::MainWindow{
|
||||
Q_OBJECT
|
||||
@@ -68,6 +69,7 @@ private:
|
||||
QTabWidget *tabs;
|
||||
StatusBar *status_bar;
|
||||
QPointer<options_imp> options;
|
||||
QPointer<consoleDlg> console;
|
||||
QPointer<QSystemTrayIcon> systrayIcon;
|
||||
QPointer<QTimer> systrayCreator;
|
||||
QMenu *myTrayIconMenu;
|
||||
|
||||
Reference in New Issue
Block a user