From f741ebb9536522a12ce63a9e6f93aaf44905531a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 16 Nov 2017 16:49:55 -0500 Subject: Minor cleanup. Get icons working on the context menu. --- src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver') diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp index 95b70e54..2cfd0f4a 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp @@ -84,15 +84,12 @@ void LLockScreen::TryUnlock(){ if( TF->open() ){ QTextStream in(TF); in << pass.toUtf8()+"\0"; //make sure it is null-terminated - //in.flush(); //make sure we push it to the file **right now** since we need to keep the file open TF->close(); //qDebug() << "Trying to unlock session:" << TF->fileName() << LUtils::readFile(TF->fileName()); //qDebug() << "UserName:" << getlogin(); LUtils::runCommand(ok, "lumina-checkpass",QStringList() << "-f" << TF->fileName() ); - //ok = (LUtils::runCmd("lumina-checkpass", QStringList() << "-f" << TF->fileName() ) == 0); - //TF->close(); } - delete TF; + delete TF; //ensure the temporary file is removed **right now** for security purposes if(ok){ emit ScreenUnlocked(); this->setEnabled(true); -- cgit