Commit 078a3c56 authored by David Faure's avatar David Faure
Browse files

Fix import filters creating an empty content.xml - the behavior changed due to...

Fix import filters creating an empty content.xml - the behavior changed due to us going through actual QIODevice code in qt4.
In fact in kde3 code we actually didn't always open the KoStoreDevice, but it still worked that way since our readBlock/writeBlock were called directly.

svn path=/trunk/koffice/; revision=603088
parent 67cb7af0
......@@ -32,6 +32,8 @@ class KoStoreDevice : public QIODevice
public:
/// Note: KoStore::open() should be called before calling this.
KoStoreDevice( KoStore * store ) : m_store(store) {
// koffice-1.x behavior compat: a KoStoreDevice is automatically open
setOpenMode( m_store->mode() == KoStore::Read ? QIODevice::ReadOnly : QIODevice::WriteOnly );
}
~KoStoreDevice() {}
......
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