Summary: | There should be the option to start ktorrent in the background. | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | Haeber <thomas> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Haeber
2005-11-14 14:25:54 UTC
There allready is, just enable the system tray icon. Yes I know, what I meant was the re-pop-up-ing of the torrent GUI with every system/kde-reboot. In this situation the system tray icon firstly does work after closing/hiding the GUI. Maybe this does only happen with my system/kde, i don't know - I'm using kde 3.5rc1!? You're right, I didn't test it when the session was restored SVN commit 487369 by guisson: Fixed starting minimized to system tray when the session is restored. BUG: 116342 M +11 -1 ktorrent.cpp M +2 -2 ktorrentapp.cpp --- trunk/extragear/network/ktorrent/apps/ktorrent/ktorrent.cpp #487368:487369 @@ -162,6 +162,7 @@ bool hidden_on_exit = KGlobal::config()->readBoolEntry("hidden_on_exit",false); if (!(Settings::showSystemTrayIcon() && hidden_on_exit)) { + Out() << "Showing KT" << endl; show(); } } @@ -169,7 +170,6 @@ KTorrent::~KTorrent() { delete m_dcop; - bt::Out() << "I'm dead" << bt::endl; delete m_core; delete m_pref; delete m_statusInfo; @@ -499,6 +499,16 @@ void KTorrent::readProperties(KConfig*) { + bool hidden_on_exit = KGlobal::config()->readBoolEntry("hidden_on_exit",false); + if (!(Settings::showSystemTrayIcon() && hidden_on_exit)) + { + Out() << "Showing KT" << endl; + show(); + } + else + { + hide(); + } } void KTorrent::urlDropped(QDropEvent* event,QListViewItem*) --- trunk/extragear/network/ktorrent/apps/ktorrent/ktorrentapp.cpp #487368:487369 @@ -46,11 +46,11 @@ dcopClient()->registerAs(name(), false); // see if we are starting with session management - if (restoringSession()) +/* if (restoringSession()) { RESTORE(KTorrent); } - else + else*/ { // no session.. just start up normally KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); |