mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Fix some warnings
This commit is contained in:
committed by
sledgehammer999
parent
84f0dbecfe
commit
5251d93b3d
@@ -1036,7 +1036,7 @@ void MainWindow::on_actionCloseWindow_triggered()
|
||||
QWidget *MainWindow::currentTabWidget() const
|
||||
{
|
||||
if (isMinimized() || !isVisible())
|
||||
return 0;
|
||||
return nullptr;
|
||||
if (m_tabs->currentIndex() == 0)
|
||||
return m_transferListWidget;
|
||||
return m_tabs->currentWidget();
|
||||
@@ -1437,7 +1437,7 @@ void MainWindow::loadPreferences(bool configureSession)
|
||||
#else
|
||||
const bool newSystrayIntegration = pref->systrayIntegration();
|
||||
m_ui->actionLock->setVisible(newSystrayIntegration);
|
||||
if (newSystrayIntegration != (m_systrayIcon != 0)) {
|
||||
if (newSystrayIntegration != (m_systrayIcon != nullptr)) {
|
||||
if (newSystrayIntegration) {
|
||||
// create the trayicon
|
||||
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||
|
||||
Reference in New Issue
Block a user