diff -r bfacef6f29c1 -r 0fad394bc330 mainwindow.cpp --- a/mainwindow.cpp Tue Mar 09 13:09:05 2010 +0000 +++ b/mainwindow.cpp Wed Mar 10 15:36:19 2010 +0000 @@ -1921,11 +1921,12 @@ return NULL; } -VymModel* Main::getModel(uint id) const //FIXME-2 id not used +VymModel* Main::getModel(uint id) const { // Used in BugAgent - if ( tabWidget->currentPage()) - return vymViews.at(tabWidget->currentIndex())->getModel(); + for (int i=0; igetModel()->getID()==id) + return vymViews.at(i)->getModel(); return NULL; } @@ -3961,28 +3962,10 @@ if (!currentMapEditor()) return; currentMapEditor()->testFunction1(); */ -/* - - VymModel *m=currentModel(); - if (!m) return; - - bool ok; - QString text = QInputDialog::getText( - "VYM", "Enter Filter:", QLineEdit::Normal, // FIXME-3 no translation yet - m->getSortFilter(), &ok, NULL); - if ( ok) - // user entered something and pressed OK - m->setSortFilter (text); -*/ } void Main::testFunction2() { - findResultWidget->setModel (currentModel()); - findResultWidget->addResult ("Test",currentModel()->getSelectedItem()); - - return; - if (!currentMapEditor()) return; currentMapEditor()->testFunction2(); }