| 167 | } |
| 168 | |
| 169 | bool OpenWithPlugin::canOpenDefault() const |
| 170 | { |
| 171 | if (!m_defaultOpener.isValid() && isDirectory(m_mimeType)) { |
| 172 | // potentially happens in non-kde environments apparently, see https://git.reviewboard.kde.org/r/122373 |
| 173 | return KApplicationTrader::preferredService(m_mimeType); |
| 174 | } else { |
| 175 | return true; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | OpenWithPlugin::OpenWithPlugin(QObject* parent, const KPluginMetaData& metaData, const QVariantList&) |
| 180 | : IPlugin(QStringLiteral("kdevopenwith"), parent, metaData) |
nothing calls this directly
no test coverage detected