https://bugs.kde.org/show_bug.cgi?id=363852

            Bug ID: 363852
           Summary: Ktorrent no longer starts hidden in tray
           Product: ktorrent
           Version: 5.0
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: joris.guis...@gmail.com
          Reporter: matt.schei...@gmail.com

GUI::loadState has functionality to start ktorrent minimized when
Settings::showSystemTrayIcon() && hidden_on_exit is true. Since 5.0, this code
still works, but something else (outside GUI) is showing the window, when I
overrided QWidget::setVisible it would always happen twice - first, the
loadState function is called, and then QWidget is set visible even when
loadState sets it false, within 2 log entries every time.

The only other functionality within ktorrent itself that interacts with widget
visibility is the function GUI::showOrHide, which is linked to the signal
show_kt_action, which is NOT what causes the visibility toggle.

So whatever it is, its somewhere up the stack, in either KMainWindow or
QWidget, and it probably has something to do with refactoring in the Qt5 widget
changes, but I'm personally out of ideas at this point and spent way too much
time recompiling ktorrent wondering why in the world this was happening!
Hopefully someone else has an idea.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to