mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
Merge pull request #6868 from evsh/no-old-style-cast
Replace C-style casts with C++ ones
This commit is contained in:
commit
ff80208534
20 changed files with 41 additions and 39 deletions
|
@ -1092,7 +1092,7 @@ bool MainWindow::event(QEvent *e)
|
|||
if (isMinimized()) {
|
||||
qDebug("minimisation");
|
||||
if (m_systrayIcon && Preferences::instance()->minimizeToTray()) {
|
||||
qDebug("Has active window: %d", (int)(qApp->activeWindow() != 0));
|
||||
qDebug() << "Has active window:" << (qApp->activeWindow() != nullptr);
|
||||
// Check if there is a modal window
|
||||
bool hasModalWindow = false;
|
||||
foreach (QWidget *widget, QApplication::allWidgets()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue