mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdesudo: finish startup early in kaskpass too
just in case Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
67dfe3b608
commit
80b5e33732
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
#include <kaboutdata.h>
|
#include <kaboutdata.h>
|
||||||
#include <kpassworddialog.h>
|
#include <kpassworddialog.h>
|
||||||
#include <kwindowsystem.h>
|
#include <kwindowsystem.h>
|
||||||
|
#include <kstartupinfo.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -98,6 +99,9 @@ int main(int argc, char **argv)
|
||||||
dialog.setPrompt(kLocalString(prompt));
|
dialog.setPrompt(kLocalString(prompt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// finish startup before showing the dialog
|
||||||
|
KStartupInfo::appStarted();
|
||||||
|
|
||||||
const int result = dialog.exec();
|
const int result = dialog.exec();
|
||||||
if (result == QDialog::Accepted) {
|
if (result == QDialog::Accepted) {
|
||||||
const QByteArray pass = kLocalBytes(dialog.password());
|
const QByteArray pass = kLocalBytes(dialog.password());
|
||||||
|
|
Loading…
Add table
Reference in a new issue