Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 115ffc4d authored by Laurent Montel's avatar Laurent Montel 😁

Version must be in first as defined in spec

parent 2d4d8a0b
......@@ -3,7 +3,7 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_SOURCE_DIR}/kabc)
########### next target ###############
if (0)
set(testroundtrip_SRCS testroundtrip.cpp)
qt4_add_resources(testroundtrip_SRCS testroundtrip.qrc)
......@@ -11,7 +11,7 @@ qt4_add_resources(testroundtrip_SRCS testroundtrip.qrc)
kde4_add_unit_test(testroundtrip TESTNAME kabc-vcardroundtriptest ${testroundtrip_SRCS})
target_link_libraries(testroundtrip kabc ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY})
endif()
########### next target ###############
set(testread_SRCS testread.cpp)
......
......@@ -260,6 +260,10 @@ QByteArray VCardParser::createVCards( const VCard::List &list )
text.append( "BEGIN:VCARD\r\n" );
idents = ( *cardIt ).identifiers();
//VERSION must be first
if (idents.contains(QLatin1String("VERSION"))) {
idents.swap(idents.indexOf(QLatin1String("VERSION")),0);
}
for ( identIt = idents.constBegin(); identIt != idents.constEnd(); ++identIt ) {
lines = ( *cardIt ).lines( ( *identIt ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment