Show
Ignore:
Timestamp:
04/05/08 17:09:39 (8 months ago)
Author:
flynd
Message:

Update contact list when custom auto response is changed since daemon doesn't send any event for this.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/dialogs/customautorespdlg.cpp

    r6069 r6124  
    2121#include "customautorespdlg.h" 
    2222 
    23 #include <QVBoxLayout> 
    2423#include <QDialogButtonBox> 
    2524#include <QPushButton> 
    2625#include <QTimer> 
     26#include <QVBoxLayout> 
    2727 
    2828#include <licq_user.h> 
    29 #include <licq_events.h> 
    3029 
    31 #include "core/mainwin.h" 
     30#include "core/licqgui.h" 
    3231 
    3332#include "helpers/licqstrings.h" 
     
    104103    u->SetCustomAutoResponse(s.toLocal8Bit()); 
    105104    gUserManager.DropUser(u); 
    106     CICQSignal sig(SIGNAL_UPDATExUSER, USER_BASIC, myId.toLatin1(), myPpid); 
    107     gMainWindow->slot_updatedUser(&sig); 
     105 
     106    // Daemon doesn't send signal when autoresponse is changed so we must tell 
     107    // contact list to update since custom autoresponse affects extended icons 
     108    LicqGui::instance()->updateUserData(myId, myPpid); 
    108109  } 
    109110  close(); 
     
    117118    u->ClearCustomAutoResponse(); 
    118119    gUserManager.DropUser(u); 
    119     CICQSignal sig(SIGNAL_UPDATExUSER, USER_BASIC, myId.toLatin1(), myPpid); 
    120     gMainWindow->slot_updatedUser(&sig); 
     120 
     121    // Daemon doesn't send signal when autoresponse is changed so we must tell 
     122    // contact list to update since custom autoresponse affects extended icons 
     123    LicqGui::instance()->updateUserData(myId, myPpid); 
    121124  } 
    122125  close();