Skip to content

Commit c349216

Browse files
liehenniushijia
andauthored
fix:check for empty URI string (#95)
Co-authored-by: niushijia <[email protected]>
1 parent c14a33f commit c349216

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/configlib/addonmodel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ void AddonProxyModel::setFilterText(const QString &text) {
373373
}
374374

375375
void launchExternalConfig(const QString &uri, WId wid) {
376+
if (uri.isEmpty()) {
377+
return;
378+
}
376379
QFileInfo pathToWrapper(FCITX5_QT_GUI_WRAPPER);
377380
QDir dirToWrapper = pathToWrapper.dir();
378381
if (uri.startsWith("fcitx://config/addon/")) {

0 commit comments

Comments
 (0)