[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 121332] New: new class generated in wrong directory
From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date: 2006-02-03 23:42:35
Message-ID: 20060204004234.121332.kkk86 () web ! de
[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=121332
Summary: new class generated in wrong directory
Product: kdevelop
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-bugs kdevelop org
ReportedBy: kkk86 web de
Version: 3.4 (using KDE KDE 3.5.1KDE 3.4.3)
Installed from: Debian testing/unstable PackagesUbuntu Packages
Compiler: gcc 4.0.2
OS: Linux
Hi,
I have a custom project with project directory /home/oliver. The project directory \
has some subdirectories:
/home/oliver/d1
/home/oliver/d2.
Now I want to create a new class in d2.
Step 1: I set the active directory to d2 by using the context menu in the
file browser.
Step 2: I use the new class wizard.
Unfortunately the new class is generated in the project directory and not in d2.
Analysis:
url.fileName() returns "d2" so the next instruction will set
m_contextDirName to "". If we use url.path() instead m_contextDirName will become \
d1/d2 which works.
Index: buildtools/custommakefiles/customprojectpart.cpp
===================================================================
--- buildtools/custommakefiles/customprojectpart.cpp (revision 503276)
+++ buildtools/custommakefiles/customprojectpart.cpp (working copy)
@ -173,7 +173,7 @
KURL url = fcontext->urls().first();
if (URLUtil::isDirectory(url)) {
// remember the name of the directory
- m_contextDirName = url.fileName();
+ m_contextDirName = url.path();
m_contextDirName = m_contextDirName.mid ( \
project()->projectDirectory().length() + 1 ); popup->insertSeparator();
int id = popup->insertItem( i18n("Make Active Directory"),
best regards
Oliver Scheerer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic