summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.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/mainwindow/mainwindow.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/mainwindow/mainwindow.h')
-rw-r--r--src/server/mainwindow/mainwindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index 64accd9..dbef1b1 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -39,7 +39,6 @@ private:
int _tbIconSize;
Qt::ToolBarArea _tbArea;
int _tileWidth, _tileHeight;
- ConnectionFrame *_tutorFrame, *_selectedFrame;
static const int _tilesX = 9;
static const int _tilesY = 7;
@@ -86,6 +85,8 @@ private:
void mouseReleaseEvent(QMouseEvent* e);
Client* getClientFromId(int id);
+ ConnectionFrame* getTutorFrame();
+ ConnectionFrame* getSelectedFrame();
protected slots:
void onTutorListDownloaded(QByteArray& tutorList);