Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kopenwithdialog.cpp
Show First 20 Lines • Show All 1070 Lines • ▼ Show 20 Line(s) | 1055 | #endif | |||
---|---|---|---|---|---|
1071 | } | 1071 | } | ||
1072 | if (!qMimeType.isEmpty()) { | 1072 | if (!qMimeType.isEmpty()) { | ||
1073 | cg.writeXdgListEntry("MimeType", QStringList() << qMimeType); | 1073 | cg.writeXdgListEntry("MimeType", QStringList() << qMimeType); | ||
1074 | } | 1074 | } | ||
1075 | cg.sync(); | 1075 | cg.sync(); | ||
1076 | 1076 | | |||
1077 | if (!qMimeType.isEmpty()) { | 1077 | if (!qMimeType.isEmpty()) { | ||
1078 | addToMimeAppsList(menuId); | 1078 | addToMimeAppsList(menuId); | ||
1079 | } else { | | |||
1080 | m_pService = new KService(newPath); | | |||
1081 | } | 1079 | } | ||
1080 | m_pService = new KService(newPath); | ||||
1082 | } | 1081 | } | ||
1083 | } | 1082 | } | ||
1084 | 1083 | | |||
1085 | saveComboboxHistory(); | 1084 | saveComboboxHistory(); | ||
1086 | return true; | 1085 | return true; | ||
1087 | } | 1086 | } | ||
1088 | 1087 | | |||
1089 | bool KOpenWithDialog::eventFilter(QObject *object, QEvent *event) | 1088 | bool KOpenWithDialog::eventFilter(QObject *object, QEvent *event) | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |