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

List:       kde-devel
Subject:    [PATCH] Trivial knotes conduit change
From:       "Adriaan de Groot" <adridg () sci ! kun ! nl>
Date:       2001-08-01 23:28:36
[Download RAW message or body]

The attached patch replaces a QString concatenation with + by one with 
append() -- probably unnecessary, but I got a bugreport that the KNotes 
conduit wasn't finding the notes data files. So I decided to make this 
minuscule change and add a debugging statement to actually print the file it 
was looking for (and didn't find). 

-- 
[ade] at home, probably hacking at KPilot
["knotes-conduit.patch" (text/plain)]

Index: conduits/knotes/knotes-conduit.cc
===================================================================
RCS file: /home/kde/kdepim/kpilot/conduits/knotes/knotes-conduit.cc,v
retrieving revision 1.17
diff -u -3 -p -r1.17 knotes-conduit.cc
--- conduits/knotes/knotes-conduit.cc	2001/05/25 16:06:52	1.17
+++ conduits/knotes/knotes-conduit.cc	2001/08/01 23:22:58
@@ -151,7 +151,10 @@ NotesSettings::NotesSettings(const QStri
 	c.setGroup("Data");
 	nN = c.readEntry("name");
 
-	QString notedata = notesdir + "/." +  nN + "_data";
+	QString notedata(notesdir);
+	notedata.append("/.");
+	notedata.append(nN);
+	notedata.append("_data");
 	if (QFile::exists(notedata))
 	{
 		DEBUGCONDUIT << fname 
@@ -164,6 +167,8 @@ NotesSettings::NotesSettings(const QStri
 	{
 		kdWarning() << __FUNCTION__
 			<< ": No data file for note?"
+			<< " (tried "
+			<< notedata << ")"
 			<< endl;
 	}
 }

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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