kdesudo: log warning messages to the kdesudo area

1206 is not reserved for anything

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-22 23:53:18 +03:00
parent 5af270efc2
commit 1cedf80f48

View file

@ -103,13 +103,13 @@ KdeSudo::KdeSudo(const QString &icon, const QString &appname) :
KStandardDirs dirs;
file = dirs.findResource("config", file);
if (file.isEmpty()) {
kWarning(1206) << "Config file not found: " << file << "\n";
kWarning() << "Config file not found: " << file << "\n";
exit(1);
}
}
QFileInfo fi(file);
if (!fi.exists()) {
kWarning(1206) << "File does not exist: " << file << "\n";
kWarning() << "File does not exist: " << file << "\n";
exit(1);
}
if (fi.isWritable()) {