Implementation of basic permission checks.
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user