From 3ffa3592fdcb7fbde29e84f8f72050ba2868e0e4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 24 Dec 2007 11:33:32 -0200 Subject: Avoid warnings on exit --- src/repository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repository.cpp') diff --git a/src/repository.cpp b/src/repository.cpp index 205330c..3bbbe7e 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -39,7 +39,7 @@ Repository::Repository(const Rules::Repository &rule) Repository::~Repository() { - if (fastImport.state() == QProcess::Running) { + if (fastImport.state() != QProcess::NotRunning) { fastImport.closeWriteChannel(); fastImport.waitForFinished(); } -- cgit v1.2.1