diff --git a/kdepasswd/kcm/chfacedlg.cpp b/kdepasswd/kcm/chfacedlg.cpp index 21380d33..4bf15a54 100644 --- a/kdepasswd/kcm/chfacedlg.cpp +++ b/kdepasswd/kcm/chfacedlg.cpp @@ -44,8 +44,6 @@ #include "settings.h" // KConfigXT - - /** * TODO: It would be nice if the widget were in a .ui */ @@ -87,17 +85,17 @@ ChFaceDlg::ChFaceDlg(const QString& picsdir, QWidget *parent) if (facesDir.exists()) { const QStringList picslist = facesDir.entryList( QDir::Files ); foreach (const QString &it, picslist) { - new QListWidgetItem(QIcon(picsdir + it), it.section('.',0,0), ui.m_FacesWidget); + new QListWidgetItem(QIcon(picsdir + it), it.section('.', 0, 0), ui.m_FacesWidget); } } - facesDir.setPath( KCFGUserAccount::userFaceDir() ); + facesDir.setPath(KCFGUserAccount::userFaceDir()); if (facesDir.exists()) { - const QStringList picslist = facesDir.entryList( QDir::Files ); + const QStringList picslist = facesDir.entryList(QDir::Files); foreach (const QString &it, picslist) { new QListWidgetItem( QIcon(KCFGUserAccount::userFaceDir() + it), QString('/'+ it) == KCFGUserAccount::customFaceFile() ? - i18n("(Custom)") : it.section('.',0,0), + i18n("(Custom)") : it.section('.', 0, 0), ui.m_FacesWidget ); } @@ -137,12 +135,13 @@ void ChFaceDlg::addCustomPixmap(const QString &imPath, bool saveCopy) KonqOperations::COPY, KUrl::List( KUrl(userfaces.absolutePath() + "/.userinfo-tmp")), - KUrl(userfaces.absolutePath() + '/' + QFileInfo(imPath).fileName().section('.',0,0) + KUrl(userfaces.absolutePath() + '/' + QFileInfo(imPath).fileName().section('.', 0, 0) ) ); #if 0 - if (!pix.save(userfaces.absolutePath() + '/' + imPath , "PNG")) + if (!pix.save(userfaces.absolutePath() + '/' + imPath , "PNG")) { KMessageBox::sorry(this, i18n("There was an error saving the image:\n%1", userfaces.absolutePath())); + } #endif } diff --git a/kdepasswd/process.h b/kdepasswd/process.h index 426e1bde..41e279a0 100644 --- a/kdepasswd/process.h +++ b/kdepasswd/process.h @@ -180,7 +180,6 @@ protected: newlines to be printed after output. Set to @c false in constructor. @see setTerminal() */ int m_Pid; /**< PID of child process */ - QByteArray m_Command; /**< Unused */ QByteArray m_Exit; /**< String to scan for in output that indicates child has exited. */ private: