Catch SIGINT signal.

Show pin, connection, disconnection and database messages if verbose
logging is disabled.
This commit is contained in:
codestation
2015-03-15 01:53:46 -04:30
parent 22395a71ac
commit 659d72bced
6 changed files with 33 additions and 5 deletions

View File

@@ -23,6 +23,7 @@
#include <QDebug>
#include <QImage>
#include <QSettings>
#include <QTextStream>
#include <QThread>
const file_type audio_list[] = {
@@ -58,7 +59,7 @@ void Database::process()
cancel_operation = false;
int count = create();
cancel_operation = false;
qDebug("Total entries added to the database: %i", count);
QTextStream(stdout) << "Total entries added to the database: " << count << endl;
if(count < 0) {
clear();
}