summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.h
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-06-17 12:05:16 +0200
committerBjörn Hagemeister2014-06-17 12:05:16 +0200
commit8602764f8f069ec3cb6c8965262c016557bedb32 (patch)
tree6da131a729709c552068a9dc646d59ad81c77ac5 /src/server/connectionframe/connectionframe.h
parentFixed SegFauls by setting _streamingSource to integer and just using the clie... (diff)
downloadpvs2-8602764f8f069ec3cb6c8965262c016557bedb32.tar.gz
pvs2-8602764f8f069ec3cb6c8965262c016557bedb32.tar.xz
pvs2-8602764f8f069ec3cb6c8965262c016557bedb32.zip
Removed _tutorFrame and _selectedFrame out of MainWindow to prevent possible SegFaults because of too many Pointers to ConnectionFrames.
Wrote to getters getTutorFrame() and getSelectedFrame(), which are just iterating over ConnectionFrames and looking for flags _isTutor and _isSelected.
Diffstat (limited to 'src/server/connectionframe/connectionframe.h')
-rw-r--r--src/server/connectionframe/connectionframe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h
index 72f641d..353ebb8 100644
--- a/src/server/connectionframe/connectionframe.h
+++ b/src/server/connectionframe/connectionframe.h
@@ -32,7 +32,7 @@ private:
Client *_client;
int _timerId, _timerCounter;
- bool _selected;
+ bool _isSelected;
bool _isTutor;
static const int _startDragDistance = 40;
@@ -53,7 +53,7 @@ public:
void setSize(int width, int height);
void assignClient(Client *client);
void setSelection(bool selected);
- const inline bool selected() const { return _selected; }
+ const inline bool isSelected() const { return _isSelected; }
const QString& computerId() const { return _computerId; }
Client* client() const { return _client; }