mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
BUGFIX: Only one log window can be opened at a time
This commit is contained in:
parent
19368bcefa
commit
3d546a4c5d
3 changed files with 11 additions and 1 deletions
|
@ -418,7 +418,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() {
|
||||
|
@ -921,6 +925,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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue