[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kcal/tests
From: Allen Winter <winter () kde ! org>
Date: 2006-07-31 21:27:44
Message-ID: 1154381264.777030.19133.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 568346 by winterz:
Don't keep a reference to a temporary value.
Thanks for noticing Dirk.
M +7 -7 testresource.cpp
--- trunk/KDE/kdepimlibs/kcal/tests/testresource.cpp #568345:568346
@@ -94,19 +94,19 @@
CalendarResourceManager *manager = new CalendarResourceManager( "calendar" );
manager->readConfig();
- QStringList resources = manager->resourceTypeNames();
-
if ( m_resource_type.isNull() ) {
+ QStringList types = manager->resourceTypeNames();
+ QStringList descs = manager->resourceTypeDescriptions();
- const QString & chosen =
+ QString desc =
KInputDialog::getItem(
"Select Resource",
"Select the resource you wish to test. Test data will be used.",
- resources );
+ descs );
- kDebug() << "Selected Resource: " << chosen << endl;
- if ( !chosen.isNull() )
- m_resource_type = chosen;
+ kDebug() << "Selected Resource: " << desc << endl;
+ if ( !desc.isNull() )
+ m_resource_type = types[ descs.indexOf( desc ) ];
}
assert( !m_resource_type.isNull() );
/* Either read one from the config file, or create a default one. */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic