From a0572cf5076bbc20248018e98f0faee5a9a644da Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 20 Jan 2017 07:49:29 -0500 Subject: Change the "edit" button in two ways: 1) Have it always open the new screenshot file with the "-select" dialog. (Many times editors use the same mimetypes as viewers, but viewer are set as the default). 2) Change the button text to "Open With..." so users know what it will do. --- src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp | 2 +- src-qt5/desktop-utils/lumina-screenshot/MainUI.ui | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp index e15c2487..57314249 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp @@ -111,7 +111,7 @@ void MainUI::quicksave(){ QString path = savedir + QString( "Screenshot-%1.png" ).arg( lastScreenShot.toString("yyyy-MM-dd-hh-mm-ss") ); if(IMG->image().save(path, "png") ){ - QProcess::startDetached("lumina-open \""+path+"\""); + QProcess::startDetached("lumina-open -select \""+path+"\""); }else{ showSaveError(path); } diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui b/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui index 7b088bda..5e3aabb4 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui @@ -6,8 +6,8 @@ 0 0 - 357 - 414 + 386 + 288 @@ -45,7 +45,7 @@ - 40 + 0 20 @@ -84,7 +84,7 @@ - Edit + Open With... Qt::ToolButtonTextBesideIcon @@ -210,8 +210,8 @@ 0 0 - 315 - 342 + 344 + 216 -- cgit