[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/outputviews
From: Julian Rockey <linux () jrockey ! com>
Date: 2003-04-27 17:48:00
[Download RAW message or body]
CVS commit by jrockey:
Fix a nefarious bug whereby clicking on an error in the make output widget could open \
a *second* copy of your source. You then change the source, recompile and lose the \
change. This occurs only if your project resides in a symlinked directory. This \
appears to be because QDir does not like a file path in its constructor, only a \
directory path. Perhaps this was a TT bugfix somewhere along the way.
M +3 -1 makewidget.cpp 1.83
--- kdevelop/parts/outputviews/makewidget.cpp #1.82:1.83
@@ -428,5 +428,7 @@ QString MakeWidget::guessFileName( const
{
QString file = m_part->project()->projectDirectory() + "/" + *it;
- if ( name == QDir(file).canonicalPath() )
+ QFileInfo fileinfo(file);
+ QString canonicalFile = fileinfo.dir().canonicalPath() + "/" + \
fileinfo.fileName(); + if ( name == canonicalFile )
{
kdDebug(9004) << "Found file in project - " << file << " == " << name << \
endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic