[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdepim/korganizer
From: Till Adam <adam () kde ! org>
Date: 2005-07-29 17:54:30
Message-ID: 1122659670.879021.15995.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 440058 by tilladam:
Fix a memleak that Lutz just pointed out to me.
M +3 -6 koeditordetails.cpp
M +1 -1 koeditordetails.h
--- branches/KDE/3.5/kdepim/korganizer/koeditordetails.cpp #440057:440058
@@ -251,9 +251,6 @@
connect( mNameEdit, SIGNAL( textChanged( const QString & ) ),
SLOT( updateAttendeeItem() ) );
- mUidEdit = new QLineEdit( 0 );
- mUidEdit->setText( "" );
-
whatsThis = i18n("Edits the role of the attendee selected "
"in the list above.");
QLabel *attendeeRoleLabel = new QLabel( this );
@@ -552,7 +549,7 @@
void KOEditorDetails::clearAttendeeInput()
{
mNameEdit->setText("");
- mUidEdit->setText("");
+ mUid = QString::null;
mRoleCombo->setCurrentItem(0);
mStatusCombo->setCurrentItem(0);
mRsvpButton->setChecked(true);
@@ -569,7 +566,7 @@
name += " <" + a->email() + ">";
}
mNameEdit->setText(name);
- mUidEdit->setText(a->uid());
+ mUid = a->uid();
mRoleCombo->setCurrentItem(a->role());
mStatusCombo->setCurrentItem(a->status());
mRsvpButton->setChecked(a->RSVP());
@@ -622,7 +619,7 @@
}
}
a->setName( name );
- a->setUid( mUidEdit->text() );
+ a->setUid( mUid );
a->setEmail( email );
a->setRole( Attendee::Role( mRoleCombo->currentItem() ) );
a->setStatus( Attendee::PartStat( mStatusCombo->currentItem() ) );
--- branches/KDE/3.5/kdepim/korganizer/koeditordetails.h #440057:440058
@@ -120,7 +120,7 @@
bool mDisableItemUpdate;
KPIM::AddresseeLineEdit *mNameEdit;
- QLineEdit *mUidEdit;
+ QString mUid;
KListView *mListView;
QComboBox* mRoleCombo;
QCheckBox* mRsvpButton;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic