mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-09-01 00:22:09 +00:00
Merge pull request #6870 from Chocobo1/ui
Fix focusing on the previously opened dialog didn't work
This commit is contained in:
commit
70d0fb741f
@ -989,7 +989,7 @@ void MainWindow::on_actionAbout_triggered()
|
|||||||
{
|
{
|
||||||
// About dialog
|
// About dialog
|
||||||
if (m_aboutDlg)
|
if (m_aboutDlg)
|
||||||
m_aboutDlg->setFocus();
|
m_aboutDlg->activateWindow();
|
||||||
else
|
else
|
||||||
m_aboutDlg = new about(this);
|
m_aboutDlg = new about(this);
|
||||||
}
|
}
|
||||||
@ -997,7 +997,7 @@ void MainWindow::on_actionAbout_triggered()
|
|||||||
void MainWindow::on_actionStatistics_triggered()
|
void MainWindow::on_actionStatistics_triggered()
|
||||||
{
|
{
|
||||||
if (m_statsDlg)
|
if (m_statsDlg)
|
||||||
m_statsDlg->setFocus();
|
m_statsDlg->activateWindow();
|
||||||
else
|
else
|
||||||
m_statsDlg = new StatsDialog(this);
|
m_statsDlg = new StatsDialog(this);
|
||||||
}
|
}
|
||||||
@ -1077,7 +1077,7 @@ void MainWindow::createTorrentTriggered(const QString &path)
|
|||||||
{
|
{
|
||||||
if (m_createTorrentDlg) {
|
if (m_createTorrentDlg) {
|
||||||
m_createTorrentDlg->updateInputPath(path);
|
m_createTorrentDlg->updateInputPath(path);
|
||||||
m_createTorrentDlg->setFocus();
|
m_createTorrentDlg->activateWindow();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_createTorrentDlg = new TorrentCreatorDlg(this, path);
|
m_createTorrentDlg = new TorrentCreatorDlg(this, path);
|
||||||
@ -1547,7 +1547,7 @@ void MainWindow::createTrayIcon()
|
|||||||
void MainWindow::on_actionOptions_triggered()
|
void MainWindow::on_actionOptions_triggered()
|
||||||
{
|
{
|
||||||
if (m_options)
|
if (m_options)
|
||||||
m_options->setFocus();
|
m_options->activateWindow();
|
||||||
else
|
else
|
||||||
m_options = new OptionsDialog(this);
|
m_options = new OptionsDialog(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user