diff options
Diffstat (limited to 'launcher/ui/pages/instance/ServersPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/ServersPage.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/launcher/ui/pages/instance/ServersPage.cpp b/launcher/ui/pages/instance/ServersPage.cpp index 5c31f73b..da49f4a7 100644 --- a/launcher/ui/pages/instance/ServersPage.cpp +++ b/launcher/ui/pages/instance/ServersPage.cpp @@ -354,8 +354,14 @@ class ServersModel : public QAbstractListModel { } } - virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override { return parent.isValid() ? 0 : m_servers.size(); } - int columnCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : COLUMN_COUNT; } + virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override + { + return parent.isValid() ? 0 : m_servers.size(); + } + int columnCount(const QModelIndex& parent) const override + { + return parent.isValid() ? 0 : COLUMN_COUNT; + } Server* at(int index) { @@ -439,7 +445,10 @@ class ServersModel : public QAbstractListModel { qDebug() << "Changed:" << path; load(); } - void fileChanged(const QString& path) { qDebug() << "Changed:" << path; } + void fileChanged(const QString& path) + { + qDebug() << "Changed:" << path; + } private slots: void save_internal() @@ -483,7 +492,10 @@ class ServersModel : public QAbstractListModel { m_saveTimer.stop(); } - bool saveIsScheduled() const { return m_dirty; } + bool saveIsScheduled() const + { + return m_dirty; + } void updateFSObserver() { |