Merge pull request #9461 from thalieht/tracker

Show "N/A" if there is no scrape response
This commit is contained in:
Vladimir Golovnev 2018-09-10 07:14:28 +03:00 committed by GitHub
commit d18de18128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 54 additions and 56 deletions

View file

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