mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kdesudo: remove the temporary xauth file from KdeSudo destructor
regardless if error occurs Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3736563787
commit
0156f73bef
1 changed files with 3 additions and 3 deletions
|
@ -284,6 +284,9 @@ KdeSudo::~KdeSudo()
|
|||
m_process->terminate();
|
||||
m_process->waitForFinished(3000);
|
||||
}
|
||||
if (!m_tmpName.isEmpty()) {
|
||||
QFile::remove(m_tmpName);
|
||||
}
|
||||
}
|
||||
|
||||
void KdeSudo::error(const QString &msg)
|
||||
|
@ -333,9 +336,6 @@ void KdeSudo::parseOutput()
|
|||
void KdeSudo::procExited(int exitCode)
|
||||
{
|
||||
if (!m_error) {
|
||||
if (!m_tmpName.isEmpty()) {
|
||||
QFile::remove(m_tmpName);
|
||||
}
|
||||
KApplication::kApplication()->exit(exitCode);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue