[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    projectlist: tiny patch
From:       Whitehawk Stormchaser <zerokode () gmx ! net>
Date:       2004-04-19 0:05:52
Message-ID: 200404190205.53091.zerokode () gmx ! net
[Download RAW message or body]

Hi!
I have a little tiny patch for the PM... This one will patch up the 
kateprojectlist.cpp, that when on kate's start the last project is actually 
loaded in the combobox, not only in list.
(patch is applied in kdebase/kate/app)

Regards. ~W.
-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
---------------------
KDE XMame Wrapper: The KMameleon Project
http://kmameleon.berlios.de

K Desktop Environment: "Best is opened"
http://www.kde.org/

["pm.diff" (text/x-diff)]

? pm.diff
Index: kateprojectlist.cpp
===================================================================
RCS file: /home/kde/kdebase/kate/app/kateprojectlist.cpp,v
retrieving revision 1.15
diff -u -r1.15 kateprojectlist.cpp
--- kateprojectlist.cpp	24 Dec 2003 15:09:31 -0000	1.15
+++ kateprojectlist.cpp	18 Apr 2004 23:58:16 -0000
@@ -70,7 +70,12 @@
   for (uint i = 0; i < m_projectManager->projects(); i++)
     projectCreated (m_projectManager->project(i));
 
-  projectChanged ();
+ //Activate the last project... If nothing is there; it won't be run anyways...
+  if (m_projects.size()> 0 )
+  {
+    m_mainWindow->activateProject (m_projectManager->project(m_projects.size() -1 \
)); +    projectChanged ();
+  }
 
   // connecting
   connect(m_projectManager->projectManager(),SIGNAL(projectCreated(Kate::Project \
*)),this,SLOT(projectCreated(Kate::Project *)));



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic