Skip to content

Commit

Permalink
Fix the forming of the plugin relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
psycha0s committed Apr 13, 2015
1 parent 745dd4b commit 08fb0f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/manager/forms/linkdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ void LinkDialog::browsePlugin()
}

if(dialog.exec()) {
int length = prefixInfo.absoluteFilePath().length() + 1; // Take '/' into account
QString prefixPath = prefixInfo.absoluteFilePath();
int length = prefixPath.length();
if(!prefixPath.endsWith('/'))
length++;

targetEdit_->setText(dialog.selectedPath().mid(length));

QString name = dialog.selectedName();
Expand Down

0 comments on commit 08fb0f0

Please sign in to comment.