Implementation of basic permission checks.

This commit is contained in:
2016-03-11 14:13:40 +01:00
parent 2c49209b8e
commit 96685d2bed
9 changed files with 128 additions and 11 deletions
+4
View File
@@ -41,6 +41,10 @@ public slots:
QMessageBox::critical(this, "Database error", msg.toStdString().c_str());
m_saved = false;
});
this->connect(service(), &IService::permissionDenied, [this](QString permission) {
QMessageBox::critical(this, "Permission denied", permission.toStdString().c_str());
m_saved = false;
});
this->connect(service(), &IService::dataChanged, [this]() {
m_saved = true;
});