mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 13:18:06 -06:00
Fix MainWindow coding style (Issue #2192)
This commit is contained in:
@@ -301,7 +301,7 @@ void SearchWidget::searchStarted()
|
||||
// Error | Stopped by user | Finished normally
|
||||
void SearchWidget::searchFinished(bool cancelled)
|
||||
{
|
||||
if (Preferences::instance()->useProgramNotification() && (m_mainWindow->getCurrentTabWidget() != this))
|
||||
if (Preferences::instance()->useProgramNotification() && (m_mainWindow->currentTabWidget() != this))
|
||||
m_mainWindow->showNotificationBaloon(tr("Search Engine"), tr("Search has finished"));
|
||||
|
||||
if (m_activeSearchTab.isNull()) return; // The active tab was closed
|
||||
@@ -319,7 +319,7 @@ void SearchWidget::searchFinished(bool cancelled)
|
||||
|
||||
void SearchWidget::searchFailed()
|
||||
{
|
||||
if (Preferences::instance()->useProgramNotification() && (m_mainWindow->getCurrentTabWidget() != this))
|
||||
if (Preferences::instance()->useProgramNotification() && (m_mainWindow->currentTabWidget() != this))
|
||||
m_mainWindow->showNotificationBaloon(tr("Search Engine"), tr("Search has failed"));
|
||||
|
||||
if (m_activeSearchTab.isNull()) return; // The active tab was closed
|
||||
|
||||
Reference in New Issue
Block a user