summaryrefslogtreecommitdiffstats
path: root/src/otrpreferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/otrpreferences.cpp')
-rw-r--r--src/otrpreferences.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/otrpreferences.cpp b/src/otrpreferences.cpp
index 6f6fafe..b88c602 100644
--- a/src/otrpreferences.cpp
+++ b/src/otrpreferences.cpp
@@ -139,13 +139,14 @@ void OTRPreferences::showPrivFingerprint( int accountnr )
void OTRPreferences::fillFingerprints(){
TQTable *fingerprintsTable = preferencesDialog->tbFingerprints;
preferencesDialog->tbFingerprints->setNumRows(0);
- TQValueList<TQString[5]> list = otrlConfInterface->readAllFingerprints();
- TQValueList<TQString[5]>::iterator it;
+ TQValueList<TQStringList> list = otrlConfInterface->readAllFingerprints();
+ TQValueList<TQStringList>::iterator it;
int j = 0;
for( it = list.begin(); it != list.end(); ++it ){
preferencesDialog->tbFingerprints->setNumRows( preferencesDialog->tbFingerprints->numRows() +1 );
- (*it)[0] = OtrlChatInterface::self()->formatContact((*it)[0]);
- for( int i = 0; i < 5; i++ ){
+ fingerprintsTable->setItem(j, 0, new TQAlignTableItem(fingerprintsTable, TQTableItem::Never,
+ OtrlChatInterface::self()->formatContact((*it)[0]), TQt::AlignLeft));
+ for( int i = 1; i < 5; i++ ){
//preferencesDialog->tbFingerprints->setText(j, i, (*it)[i] );
fingerprintsTable->setItem(j,i, new TQAlignTableItem(fingerprintsTable, TQTableItem::Never,(*it)[i],TQt::AlignLeft));
}