release 0.6.7 (see the debian changelog for a proper list of changes)
[fapman] / repoview.cpp
index b848b00..dba197a 100644 (file)
@@ -125,3 +125,20 @@ void RepoView::on_listWidget_itemClicked(QListWidgetItem* item)
                openWin();
        }
 }
+
+void RepoView::on_actionRe_import_HAM_repo_settings_triggered()
+{
+       ConfirmDialog d(true, this);
+       d.setText("Confirm repository import","You're about to re-read the repository settings from Hildon Application Manager. This will import the "
+                         "repositories that are currently enabled in HAM and it will clear your current repository settings here. Continue?");
+       if( d.exec() )
+       {
+               QFile r(KOwnRepoFile);
+               QFile n(KOwnRepoNamesFile);
+               r.remove();
+               n.remove();
+               iAptInterface->readRepositoryInfo();
+               iModified = true;
+               openWin();      // refresh view
+       }
+}