/[gentoo-x86]/net-misc/ksms/files/ksms-0.1.2.1-empty-store.diff
Gentoo

Contents of /net-misc/ksms/files/ksms-0.1.2.1-empty-store.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Thu Mar 17 22:51:59 2005 UTC (14 years, 10 months ago) by greg_g
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-diff
FILE REMOVED
Remove old ebuild.
(Portage version: 2.0.51.19)

1 --- ksms/messagestore.cpp.orig 2002-11-23 01:35:30.000000000 +0100
2 +++ ksms/messagestore.cpp 2003-08-17 21:10:36.000000000 +0200
3 @@ -150,20 +150,25 @@
4 messages_.clear();
5
6 QFile xmlFile( messagesFile_ );
7 - MessageStore::ReaderProgress progress( this );
8 - XmlInputSourceWithProgress source( &xmlFile, &progress );
9 - QXmlSimpleReader reader;
10 - MessagesParser handler( this );
11 - reader.setContentHandler( &handler );
12 - reader.setDTDHandler( &handler );
13 - source.reset();
14 - reader.parse( source );
15 -
16 - reading_ = false;
17 + if (xmlFile.exists()) {
18 + MessageStore::ReaderProgress progress( this );
19 + XmlInputSourceWithProgress source( &xmlFile, &progress );
20 + QXmlSimpleReader reader;
21 + MessagesParser handler( this );
22 + reader.setContentHandler( &handler );
23 + reader.setDTDHandler( &handler );
24 + source.reset();
25 + reader.parse( source );
26 +
27 + reading_ = false;
28
29 - emit storeChanged();
30 + emit storeChanged();
31
32 - modified_ = false;
33 + modified_ = false;
34 + } else {
35 + reading_ = false;
36 + modified_ = false;
37 + }
38 }
39
40

  ViewVC Help
Powered by ViewVC 1.1.20