Changeset 4491

Show
Ignore:
Timestamp:
07/07/06 07:41:05 (2 years ago)
Author:
emostar
Message:

Don't crash when we try to inset an emoticon or change colors if there is no text entry.
In fact, disable the buttons that have no meaning.
closes #1348

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/usereventdlg.cpp

    r4490 r4491  
    19541954void UserSendCommon::slot_insertEmoticon(const QString &sKey) 
    19551955{ 
    1956   mleSend->insert(sKey); 
     1956  if (mleSend) 
     1957    mleSend->insert(sKey); 
    19571958} 
    19581959 
     
    19601961void UserSendCommon::slot_SetForegroundICQColor() 
    19611962{ 
     1963  if (!mleSend) 
     1964    return; 
     1965 
    19621966#ifdef USE_KDE 
    19631967  QColor c = mleSend->foregroundColor(); 
     
    20232027void UserSendCommon::slot_SetBackgroundICQColor() 
    20242028{ 
     2029  if (!mleSend) 
     2030    return; 
     2031 
    20252032#ifdef USE_KDE 
    20262033  QColor c = mleSend->backgroundColor(); 
     
    33083315  : UserSendCommon(s, theSigMan, m, szId, nPPID, parent, "UserSendContactEvent") 
    33093316{ 
     3317  chkMass->setChecked(false); 
     3318  chkMass->setEnabled(false); 
     3319  btnForeColor->setEnabled(false); 
     3320  btnBackColor->setEnabled(false); 
     3321  btnEmoticon->setEnabled(false); 
     3322 
    33103323  delete mleSend; mleSend = NULL; 
    33113324