BUGFIX: Only one log window can be opened at a time

This commit is contained in:
Christophe Dumez
2010-03-04 08:23:16 +00:00
parent 2a07fc0dea
commit 8d55368f6a
3 changed files with 15 additions and 2 deletions

View File

@@ -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)

View File

@@ -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();
}
}

View File

@@ -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;