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

List:       kdevelop-bugs
Subject:    [Bug 149448] Importing existing projects with dashes in name
From:       David Sansome <me () davidsansome ! com>
Date:       2007-09-01 21:06:31
Message-ID: 20070901210631.21714.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=149448         
me davidsansome com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From me davidsansome com  2007-09-01 23:06 -------
SVN commit 707429 by sansome:

BUG: 149448
When importing a project, ensure that the suggested project name doesn't contain \
invalid characters (like '-')


 M  +5 -1      importdlg.cpp  


--- branches/KDE/3.5/kdevelop/parts/appwizard/importdlg.cpp #707428:707429
 @ -289,8 +289,12  @
         return;
     }
 
-    name_edit->setText(dir.dirName());
+    // Remove any characters from the dirName that would be invalid in a project \
name +    QString projectName(dir.dirName().replace(QRegExp("[^a-zA-Z0-9_]"), "_"));
 
+    // Set the project name
+    name_edit->setText(projectName);
+
     // QMake based?
     files = dir.entryList("*.pro");
     if (!files.isEmpty()) {

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs


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

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