Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleCore.cpp
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Line(s) | 276 | case StartMode::Background: | |||
---|---|---|---|---|---|
277 | showErrorMessage(i18n("Screenshot capture canceled or failed")); | 277 | showErrorMessage(i18n("Screenshot capture canceled or failed")); | ||
278 | emit allDone(); | 278 | emit allDone(); | ||
279 | return; | 279 | return; | ||
280 | case StartMode::DBus: | 280 | case StartMode::DBus: | ||
281 | emit grabFailed(); | 281 | emit grabFailed(); | ||
282 | emit allDone(); | 282 | emit allDone(); | ||
283 | return; | 283 | return; | ||
284 | case StartMode::Gui: | 284 | case StartMode::Gui: | ||
285 | mMainWindow->activateWindow(); | 285 | mMainWindow->setScreenshotAndShow(QPixmap()); | ||
286 | mMainWindow->show(); | | |||
287 | } | 286 | } | ||
288 | } | 287 | } | ||
289 | 288 | | |||
290 | void SpectacleCore::doNotify(const QUrl &theSavedAt) | 289 | void SpectacleCore::doNotify(const QUrl &theSavedAt) | ||
291 | { | 290 | { | ||
292 | KNotification *lNotify = new KNotification(QStringLiteral("newScreenshotSaved")); | 291 | KNotification *lNotify = new KNotification(QStringLiteral("newScreenshotSaved")); | ||
293 | 292 | | |||
294 | switch(ExportManager::instance()->captureMode()) { | 293 | switch(ExportManager::instance()->captureMode()) { | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |