Skip to content

Commit

Permalink
[BACKPORT] use native separators in filename edit widget (fix #2992)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 13, 2011
1 parent 4739733 commit 650a6bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsattributeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <QCalendarWidget>
#include <QDialogButtonBox>
#include <QSettings>
#include <QDir>

void QgsAttributeEditor::selectFileName()
{
Expand All @@ -58,7 +59,8 @@ void QgsAttributeEditor::selectFileName()
if ( fileName.isNull() )
return;

le->setText( fileName );
//le->setText( fileName );
le->setText( QDir::toNativeSeparators( fileName ) );
}

void QgsAttributeEditor::selectDate()
Expand Down

0 comments on commit 650a6bb

Please sign in to comment.