Changeset 4579

Show
Ignore:
Timestamp:
08/20/06 22:33:41 (2 years ago)
Author:
erijo
Message:

Apply patch from Daniel Hess found on Debian bts. This should fix
#1357. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377894 for
more information.

Files:
1 modified

Legend:

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

    r4576 r4579  
    132132  if (!edtPassword->text().isEmpty()) 
    133133    szPassword = edtPassword->text().latin1(); 
    134   const char *szProtocol = cmbProtocol->currentText().latin1(); 
     134  QString szProtocol = cmbProtocol->currentText(); 
    135135  unsigned long nPPID = 0; 
    136136   
     
    140140  for (it = pl.begin(); it != pl.end(); it++) 
    141141  { 
    142     if (strcmp(szProtocol, (*it)->Name()) == 0) 
     142    if (szProtocol == QString((*it)->Name())) 
    143143    { 
    144144      nPPID = (*it)->PPID(); 
     
    150150  if (nPPID == 0) 
    151151  { 
    152     gLog.Error("%sInvalid protocol '%s'\n", L_ERRORxSTR, szProtocol); 
     152    gLog.Error("%sInvalid protocol '%s'\n", L_ERRORxSTR, szProtocol.latin1()); 
    153153    return; 
    154154  }