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 3f14ea8 commit cafdd63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsattributeeditor.cpp
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 cafdd63

Please sign in to comment.