diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-16 16:49:55 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-16 16:49:55 -0500 |
commit | f741ebb9536522a12ce63a9e6f93aaf44905531a (patch) | |
tree | 7362480f8cf6189c53ae2d8d5383466b3d9e892c /src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp | |
parent | Get more of the new QML interface working for Lumina 2. (diff) | |
download | lumina-f741ebb9536522a12ce63a9e6f93aaf44905531a.tar.gz lumina-f741ebb9536522a12ce63a9e6f93aaf44905531a.tar.bz2 lumina-f741ebb9536522a12ce63a9e6f93aaf44905531a.zip |
Minor cleanup. Get icons working on the context menu.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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); |