summaryrefslogtreecommitdiffstats
path: root/src/vsession.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vsession.h')
-rw-r--r--src/vsession.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/vsession.h b/src/vsession.h
index af01230..2641008 100644
--- a/src/vsession.h
+++ b/src/vsession.h
@@ -25,8 +25,12 @@ class VSession : public Session {
return getAttribute(QStringLiteral("for_location")).toInt() != 0;
}
- bool canEdit() const {
- return getAttribute(QStringLiteral("allow_edit")).toInt() != 0;
+ bool canEdit() const override {
+ return editModeTypes() != 0;
+ }
+
+ int editModeTypes() const override {
+ return getAttribute(QStringLiteral("allow_edit")).toInt();
}
QString virtualizer() const {
@@ -92,7 +96,7 @@ class VSession : public Session {
static QList<Session*> loadFromXmlDocument(const QDomDocument& doc);
protected:
- virtual QString checkCanRunInternal() const;
+ QString checkCanRunInternal() const;
private: