Skip to content

Commit

Permalink
Backport #44798 Fix attachment widget drag&drop relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 authored and nyalldawson committed Aug 26, 2021
1 parent 262e0f7 commit ab00739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfilewidget.cpp
Expand Up @@ -181,7 +181,7 @@ void QgsFileWidget::editLink()

void QgsFileWidget::fileDropped( const QString &filePath )
{
setSelectedFileNames( QStringList() << filePath );
setFilePath( relativePath( filePath, true ) );
mLineEdit->selectAll();
mLineEdit->setFocus( Qt::MouseFocusReason );
}
Expand Down

0 comments on commit ab00739

Please sign in to comment.