[KUnitConversion] Currency: Fetch the currency file properly
Review Request #122183 - Created Jan. 21, 2015 and discarded
Currency: Fetch the currency file properly
Properly run an event loop and wait for the file to be fetched.
Also add a test to make sure currency conversion is working.
This patch also contains -
This is because reviewboard refuses to upload only a part of the diff. Please only look at currency.cpp w.r.t the EventLoop.
Test now passes.
Why not just QDir().mkpath(info.absolutePath()) ?
well then we still have a problem if the CurrencyCategory is being deleted before this job finishes. Can this happen? If so, then the destructor of the CurrencyCategory[Private] should delete the networkaccessmanager, to make sure that it can't emit finished later.
missing error handling on the open() call [was there before this patch]