Diffstat (limited to 'noncore/apps/confedit/listviewitemconffile.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/confedit/listviewitemconffile.cpp | 7 |
1 files changed, 7 insertions, 0 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 | |||
@@ -91,9 +91,16 @@ void ListViewItemConfFile::save() | |||
91 | char buf[SIZE]; | 91 | char buf[SIZE]; |
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 | 95 | ||
96 | 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 | } |