Bug 140904 - Automake project, manager, Add (include dir) button opens OpenFile dialog
Summary: Automake project, manager, Add (include dir) button opens OpenFile dialog
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.4.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 17:01 UTC by Rui L. Pires
Modified: 2007-01-30 17:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rui L. Pires 2007-01-30 17:01:16 UTC
Version:           3.4.0 (using KDE 3.5.4, compiled sources)
Compiler:          Target: i586-mandriva-linux-gnu
OS:                Linux (i686) release 2.6.17-6mdv

This is not a critical bug.

In an Automake project, trying to add an 'include' directory using the Add button (subproject options, Tab Includes), opens a OpenDirectory dialog.

The accepted directory (after pressing OK) is added to the list of directories WITHOUT the -I required.

This behaviour is somewhat similar to that reported in BUG 140301.

Regards,
RLP
Comment 1 Andreas Pakulat 2007-01-30 17:23:00 UTC
SVN commit 628598 by apaku:

Add -I for outside include dirs if it doesn't exist yet
BUG:140904


 M  +4 -0      subprojectoptionsdlg.cpp  


--- branches/kdevelop/3.4/buildtools/autotools/subprojectoptionsdlg.cpp #628597:628598
@@ -301,7 +301,11 @@
 {
     QString dir = KFileDialog::getExistingDirectory();
     if (!dir.isEmpty())
+    {
+        if( !dir.startsWith( "-I" ) )
+            dir = "-I"+dir;
         new QListViewItem(outsideinc_listview, dir);
+    }
 }