TargetsDialog.cpp   TargetsDialog.cpp 
skipping to change at line 27 skipping to change at line 27
*/ */
#include "TargetsDialog.hpp" #include "TargetsDialog.hpp"
#include "LogBookCommon.hpp" #include "LogBookCommon.hpp"
#include "LogBook.hpp" #include "LogBook.hpp"
#include "ui_TargetsDialog.h" #include "ui_TargetsDialog.h"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelCore.hpp" #include "StelCore.hpp"
#include "StelGui.hpp" #include "StelGui.hpp"
#include "StelMainGraphicsView.hpp" #include "StelMainView.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelObjectMgr.hpp" #include "StelObjectMgr.hpp"
#include "StelObjectType.hpp" #include "StelObjectType.hpp"
#include "StelMainScriptAPI.hpp" #include "StelMainScriptAPI.hpp"
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include <QDebug> #include <QDebug>
#include <QList> #include <QList>
skipping to change at line 124 skipping to change at line 124
if (!tableModel->submit()) { if (!tableModel->submit()) {
qWarning() << "LogBook: could not update target. Er ror is: " << tableModel->lastError(); qWarning() << "LogBook: could not update target. Er ror is: " << tableModel->lastError();
} }
} }
ui->targetsListView->setCurrentIndex(tableModel->index(lastRowNumber Selected, 1)); ui->targetsListView->setCurrentIndex(tableModel->index(lastRowNumber Selected, 1));
} }
void TargetsDialog::closeWindow() void TargetsDialog::closeWindow()
{ {
setVisible(false); setVisible(false);
StelMainGraphicsView::getInstance().scene()->setActiveWindow(0); StelMainView::getInstance().scene()->setActiveWindow(0);
} }
void TargetsDialog::createTargetFromSelection() void TargetsDialog::createTargetFromSelection()
{ {
if (StelApp::getInstance().getStelObjectMgr().getWasSelected()) { if (StelApp::getInstance().getStelObjectMgr().getWasSelected()) {
QList<StelObjectP> selectedObjects = StelApp::getInstance(). getStelObjectMgr().getSelectedObject(); QList<StelObjectP> selectedObjects = StelApp::getInstance(). getStelObjectMgr().getSelectedObject();
QListIterator<StelObjectP> objectIterator(selectedObjects); QListIterator<StelObjectP> objectIterator(selectedObjects);
StelCore* core = StelApp::getInstance().getCore(); StelCore* core = StelApp::getInstance().getCore();
while (objectIterator.hasNext()) { while (objectIterator.hasNext()) {
StelObjectP stelObject = objectIterator.next(); StelObjectP stelObject = objectIterator.next();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/