Bug 116342 - There should be the option to start ktorrent in the background.
Summary: There should be the option to start ktorrent in the background.
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 14:25 UTC by Haeber
Modified: 2005-12-10 14:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Haeber 2005-11-14 14:25:54 UTC
Version:           1.1 (using KDE 3.5 (RC1) Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

An Option to start ktorrent in the background with system start would be an nice improvement.

Best regards
Thomas
Comment 1 Joris Guisson 2005-11-14 18:11:01 UTC
There allready is, just enable the system tray icon.
Comment 2 Haeber 2005-11-14 18:20:00 UTC
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!?
Comment 3 Joris Guisson 2005-11-14 18:34:25 UTC
You're right, I didn't test it when the session was restored
Comment 4 Joris Guisson 2005-12-10 14:20:53 UTC
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();