Another fix

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2022-11-02 09:31:39 +00:00
parent 6c45a990ef
commit a1ed8154f7

View File

@ -282,7 +282,10 @@ void ModPage::openUrl(const QUrl& url)
dialog->selectPage(page);
ModPage* newPage = dialog->getSelectedPage();
newPage->ui->searchEdit->setText(slug);
QLineEdit* searchEdit = newPage->ui->searchEdit;
if (searchEdit->text() != slug) {
searchEdit->setText(slug);
newPage->triggerSearch();
ModPlatform::ListModel* model = newPage->listModel;
@ -305,6 +308,7 @@ void ModPage::openUrl(const QUrl& url)
return;
}
}
}
// open in the user's web browser
QDesktopServices::openUrl(url);