aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-screenshot
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot')
-rw-r--r--src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
index f6b89a03..47828cdd 100644
--- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
@@ -83,7 +83,10 @@ void MainUI::saveScreenshot(){
}
void MainUI::quicksave(){
if(mousegrabbed){ return; }
- QString savedir = QDir::homePath() + "/Pictures/";
+ QString savedir = QDir::homePath()+"/";
+ if(QFile::exists(savedir + "Pictures/")){ savedir.append("Pictures/"); }
+ else if(QFile::exists(savedir + "Images/")){ savedir.append("Images/"); }
+
QString path = savedir + QString( "Screenshot-%1.png" ).arg( QDateTime::currentDateTime().toString("yyyy-MM-dd-hh-mm-ss") );
IMG->image().save(path, "png");
QProcess::startDetached("lumina-open \""+path+"\"");
bgstack15