|
From: <dhu...@us...> - 2007-01-07 21:30:22
|
Revision: 121
http://svn.sourceforge.net/qcell/?rev=121&view=rev
Author: dhubleizh
Date: 2007-01-07 13:30:21 -0800 (Sun, 07 Jan 2007)
Log Message:
-----------
- the right way of doing things! :>
Modified Paths:
--------------
trunk/qcell/visgui/MainWindow.cpp
Modified: trunk/qcell/visgui/MainWindow.cpp
===================================================================
--- trunk/qcell/visgui/MainWindow.cpp 2007-01-07 21:29:30 UTC (rev 120)
+++ trunk/qcell/visgui/MainWindow.cpp 2007-01-07 21:30:21 UTC (rev 121)
@@ -278,10 +278,8 @@
}
/// @todo Fix that!
- data.clear();
- data.append((CalculationData*)world_parsers[subtype]->parse(file_content, type, subtype).toInt());
- CalculationData* cd = sw->getStorage();
- *cd = *data.first();
+ CalculationData* cd = (CalculationData*)world_parsers[subtype]->parse(file_content, type, subtype).toInt();
+ *sw->getStorage() = *cd;
/// @todo Nasty - get that code out of here !
}
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|