[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdevelop/3.4/buildtools/custommakefiles
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-02-18 15:22:46
Message-ID: 1171812166.367567.8621.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 634849 by apaku:
Now that activeDir works again, don't use currently opened file as activeDir
M +0 -8 customprojectpart.cpp
--- branches/kdevelop/3.4/buildtools/custommakefiles/customprojectpart.cpp #634848:634849
@@ -537,14 +537,6 @@
QString CustomProjectPart::activeDirectory() const
{
QDomDocument &dom = *projectDom();
- KParts::ReadOnlyPart* p = dynamic_cast<KParts::ReadOnlyPart*>( partController()->activePart() );
- if ( p )
- {
- QString relpath = URLUtil::relativePath( projectDirectory(), p->url().directory() );
- if ( relpath.startsWith( "/" ) )
- relpath = relpath.right( relpath.length() - 1 );
- return relpath;
- }
return DomUtil::readEntry( dom, "/kdevcustomproject/general/activedir", "." );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic