Changeset View
Changeset View
Standalone View
Standalone View
klipper/urlgrabber.cpp
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 96 | { | |||
---|---|---|---|---|---|
97 | qDeleteAll(m_myActions); | 97 | qDeleteAll(m_myActions); | ||
98 | m_myActions.clear(); | 98 | m_myActions.clear(); | ||
99 | m_myActions = list; | 99 | m_myActions = list; | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | void URLGrabber::matchingMimeActions(const QString& clipData) | 102 | void URLGrabber::matchingMimeActions(const QString& clipData) | ||
103 | { | 103 | { | ||
104 | QUrl url(clipData); | 104 | QUrl url(clipData); | ||
105 | KConfigGroup cg(KSharedConfig::openConfig(), "Actions"); | 105 | if(!KlipperSettings::enableMagicMimeActions()) { | ||
106 | if(!cg.readEntry("EnableMagicMimeActions",true)) { | | |||
107 | //qCDebug(KLIPPER_LOG) << "skipping mime magic due to configuration"; | 106 | //qCDebug(KLIPPER_LOG) << "skipping mime magic due to configuration"; | ||
108 | return; | 107 | return; | ||
109 | } | 108 | } | ||
110 | if(!url.isValid()) { | 109 | if(!url.isValid()) { | ||
111 | //qCDebug(KLIPPER_LOG) << "skipping mime magic due to invalid url"; | 110 | //qCDebug(KLIPPER_LOG) << "skipping mime magic due to invalid url"; | ||
112 | return; | 111 | return; | ||
113 | } | 112 | } | ||
114 | if(url.isRelative()) { //openinng a relative path will just not work. what path should be used? | 113 | if(url.isRelative()) { //openinng a relative path will just not work. what path should be used? | ||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |