diff --git a/src/appchooser.cpp b/src/appchooser.cpp --- a/src/appchooser.cpp +++ b/src/appchooser.cpp @@ -55,7 +55,11 @@ latestChoice = options.value(QStringLiteral("last_choice")).toString(); } - AppChooserDialog *appDialog = new AppChooserDialog(choices, latestChoice, options.value(QStringLiteral("filename")).toString()); + QVariant itemName = options.value(QStringLiteral("filename")); + if (!itemName.isValid()) { + itemName = options.value(QStringLiteral("content_type")); + } + AppChooserDialog *appDialog = new AppChooserDialog(choices, latestChoice, itemName.toString()); m_appChooserDialogs.insert(handle.path(), appDialog); Utils::setParentWindow(appDialog, parent_window);