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

List:       kdevelop-bugs
Subject:    [Bug 106025] KDevelop crashes when the name of the Code Completion
From:       Matt Rogers <mattr () kde ! org>
Date:       2006-07-26 0:09:22
Message-ID: 20060726000922.12696.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=106025         




------- Additional Comments From mattr kde org  2006-07-26 02:09 -------
SVN commit 566385 by mattr:

Patch from Bernd Buschinski.

"another tyr to fix bug 106025"

Thanks for the patch!
CCBUG: 106025



 M  +3 -3      ccconfigwidget.cpp  
 M  +1 -1      createpcsdialog.cpp  


--- branches/kdevelop/3.4/languages/cpp/ccconfigwidget.cpp #566384:566385
 @ -160,7 +160,7  @
 	{
 		Catalog* c = *it;
 		QFileInfo dbInfo( c->dbName() );
-		QCheckListItem* item = new QCheckListItem( advancedOptions, dbInfo.baseName(), \
QCheckListItem::CheckBox ); +		QCheckListItem* item = new QCheckListItem( \
advancedOptions, KURL::decode_string( dbInfo.baseName() ), QCheckListItem::CheckBox \
);  item->setOn( c->enabled() );
 
 		m_catalogs[ item ] = c;
 @ -219,7 +219,7  @
 	QString question = i18n( "Are you sure you want to remove the \"%1\" database?" \
).arg( db );  
 	KStandardDirs *dirs = m_pPart->instance() ->dirs();
-	QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + db + ".db";
+	QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + \
KURL::encode_string_no_slash( db ) + ".db";  
 #if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
 
 @ -238,7 +238,7  @
 void CCConfigWidget::catalogRegistered( Catalog * c )
 {
 	QFileInfo dbInfo( c->dbName() );
-	QCheckListItem* item = new QCheckListItem( advancedOptions, dbInfo.baseName(), \
QCheckListItem::CheckBox ); +	QCheckListItem* item = new QCheckListItem( \
advancedOptions, KURL::decode_string( dbInfo.baseName() ), QCheckListItem::CheckBox \
);  item->setOn( c->enabled() );
 
 	m_catalogs[ item ] = c;
--- branches/kdevelop/3.4/languages/cpp/createpcsdialog.cpp #566384:566385
 @ -327,7 +327,7  @
 
 		KStandardDirs *dirs = m_part->instance() ->dirs();
 
-		QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + \
filename_edit->text() + ".db"; +		QString dbName = dirs->saveLocation( "data", \
"kdevcppsupport/pcs" ) + KURL::encode_string_no_slash(filename_edit->text()) + ".db"; \
kdDebug( 9007 ) << "================================> dbName = " << dbName << endl;  
 		m_part->removeCatalog( dbName );


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

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