author | tille <tille> | 2002-06-29 22:44:44 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-29 22:44:44 (UTC) |
commit | eb02223de534d315bfdcb0d521719c2d2e9a7235 (patch) (unidiff) | |
tree | 9b71cc4f3819ee2f9ea6ccfa760d7d0133fa2dae /noncore/apps/confedit/listviewitemconffile.cpp | |
parent | 472a178f71b7d16616b82ddf6b95123179cfffac (diff) | |
download | opie-eb02223de534d315bfdcb0d521719c2d2e9a7235.zip opie-eb02223de534d315bfdcb0d521719c2d2e9a7235.tar.gz opie-eb02223de534d315bfdcb0d521719c2d2e9a7235.tar.bz2 |
saving
Diffstat (limited to 'noncore/apps/confedit/listviewitemconffile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/confedit/listviewitemconffile.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/apps/confedit/listviewitemconffile.cpp b/noncore/apps/confedit/listviewitemconffile.cpp index a8fd770..858726d 100644 --- a/noncore/apps/confedit/listviewitemconffile.cpp +++ b/noncore/apps/confedit/listviewitemconffile.cpp | |||
@@ -92,8 +92,15 @@ void ListViewItemConfFile::save() | |||
92 | while (int c = conf.readBlock(buf, SIZE) ) back.writeBlock(buf,c); | 92 | while (int c = conf.readBlock(buf, SIZE) ) back.writeBlock(buf,c); |
93 | conf.close(); | 93 | conf.close(); |
94 | back.close(); | 94 | back.close(); |
95 | |||
96 | 95 | ||
96 | |||
97 | if (!conf.open(IO_WriteOnly)) return; | ||
98 | QTextStream *t = new QTextStream( &conf ); | ||
99 | for (QListViewItem *it = firstChild(); it!=0;it = it->nextSibling()) | ||
100 | { | ||
101 | ((ListViewItemConfigEntry*)it)->save(t); | ||
102 | } | ||
103 | conf.close(); | ||
97 | qDebug("no saveing yet..."); | 104 | qDebug("no saveing yet..."); |
98 | unchanged(); | 105 | unchanged(); |
99 | } | 106 | } |