Display image filenames as relative paths.
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "merge/Merge.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QDir>
|
||||
#include <QtMath>
|
||||
#include <QtDebug>
|
||||
|
||||
@@ -129,7 +130,8 @@ namespace glabels
|
||||
}
|
||||
else
|
||||
{
|
||||
imageFilenameLineEdit->setText( filenameNode.data() );
|
||||
QString fn = QDir(mModel->dir()).relativeFilePath( filenameNode.data() );
|
||||
imageFilenameLineEdit->setText( fn );
|
||||
}
|
||||
|
||||
mBlocked = false;
|
||||
|
||||
Reference in New Issue
Block a user