Commit b8ce8618 authored by André Wöbbeking's avatar André Wöbbeking
Browse files

Small cleanup in readFile().

svn path=/trunk/kdesdk/cervisia/; revision=194557
parent 6b4cfa3b
......@@ -15,10 +15,8 @@
#include "changelogdlg.h"
#include <qfile.h>
#include <qfileinfo.h>
#include <qmultilinedit.h>
#include <qtextstream.h>
#include <kapplication.h>
#include <kconfig.h>
#include <kglobalsettings.h>
#include <klocale.h>
......@@ -107,9 +105,8 @@ void ChangeLogDialog::saveOptions(KConfig *config)
bool ChangeLogDialog::readFile(const QString &filename)
{
fname = filename;
QFileInfo fi(filename);
bool exists = QFileInfo(filename).exists();
if (!exists)
if (!QFile::exists(filename))
{
if (KMessageBox::warningContinueCancel(this,
i18n("A ChangeLog file does not exist. Create one?"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment