mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-01-21 10:31:38 -05:00
removed instance in FriendsDialog since it is not used
This commit is contained in:
parent
d6860b2313
commit
2487d79920
1 changed files with 2 additions and 8 deletions
|
|
@ -60,16 +60,12 @@
|
|||
* #define FRIENDS_DEBUG 1
|
||||
*****/
|
||||
|
||||
static FriendsDialog *instance = NULL;
|
||||
|
||||
/** Constructor */
|
||||
FriendsDialog::FriendsDialog(QWidget *parent) : MainPage(parent)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
if (!instance) instance = this;
|
||||
|
||||
#ifdef RS_DIRECT_CHAT
|
||||
QString msg = tr("Retroshare broadcast chat: messages are sent to all connected friends.");
|
||||
// "<font color='grey'>" + DateTime::formatTime(QTime::currentTime()) + "</font> -
|
||||
|
|
@ -185,14 +181,12 @@ FriendsDialog::FriendsDialog(QWidget *parent) : MainPage(parent)
|
|||
FriendsDialog::~FriendsDialog ()
|
||||
{
|
||||
rsEvents->unregisterEventsHandler(mEventHandlerId_friends);
|
||||
#ifdef RS_DIRECT_CHAT
|
||||
rsEvents->unregisterEventsHandler(mEventHandlerId_chat);
|
||||
#endif
|
||||
|
||||
// save settings
|
||||
processSettings(false);
|
||||
|
||||
if (this == instance) {
|
||||
instance = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void FriendsDialog::activatePage(FriendsDialog::Page page)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue