Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lxqt-config-file-associations/applicationchooser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

Q_DECLARE_METATYPE(XdgDesktopFile*)

ApplicationChooser::ApplicationChooser(const QString& type, int cat)
ApplicationChooser::ApplicationChooser(const QString& type, int cat, QWidget *parent) : QDialog(parent)
{
widget.setupUi(this);

Expand Down
2 changes: 1 addition & 1 deletion lxqt-config-file-associations/applicationchooser.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ApplicationChooser : public QDialog
fileManager
};

ApplicationChooser(const QString& type, int cat = category::none);
ApplicationChooser(const QString& type, int cat = category::none, QWidget *parent = nullptr);

virtual ~ApplicationChooser();

Expand Down
3 changes: 3 additions & 0 deletions lxqt-config-file-associations/applicationchooser.ui
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<property name="windowTitle">
<string>Application Chooser</string>
</property>
<property name="modal">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QFrame" name="frame_2">
Expand Down
2 changes: 1 addition & 1 deletion lxqt-config-file-associations/mimetypeviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void MimetypeViewer::chooseApplication()
XdgDesktopFile* MimetypeViewer::chooseApp(const QString& type, int cat)
{
XdgDesktopFile *app = nullptr;
ApplicationChooser applicationChooser(type, cat);
ApplicationChooser applicationChooser(type, cat, this);
int dialogCode = applicationChooser.exec();
app = applicationChooser.DefaultApplication();
if (app)
Expand Down