Fix logout current connection crash
Make sure that the neochat can handle switching connection when the current one is logged out. This is mostly about using QPointer to handle use after free issues due to room objects being deleted.
This commit is contained in:
@@ -340,7 +340,7 @@ Q_SIGNALS:
|
||||
private:
|
||||
void openRoomForActiveConnection();
|
||||
|
||||
NeoChatRoom *m_currentRoom;
|
||||
QPointer<NeoChatRoom> m_currentRoom;
|
||||
NeoChatRoom *m_lastCurrentRoom;
|
||||
QString m_arg;
|
||||
KSharedConfig::Ptr m_config;
|
||||
|
||||
Reference in New Issue
Block a user