Akregator: Add argument for opening feeds.

Signed-off-by: Riley Bell <riley.bell@vfemail.net>
feat/addFeed_argument
Riley Bell 5 months ago
parent 3353e7fa30
commit 20349c46df

@ -37,6 +37,7 @@ static TDECmdLineOptions akregator_options[] =
{ "g", 0, 0 },
{ "group <groupname>", I18N_NOOP( "When adding feeds, place them in this group" ), I18N_NOOP("Imported") },
{ "hide-mainwindow", I18N_NOOP( "Hide main window on startup" ), 0},
{ "+[URL]", I18N_NOOP("Add a feed with the given URL"), 0 },
TDECmdLineLastOption
};

@ -75,6 +75,9 @@ int Application::newInstance()
for (QCStringList::ConstIterator it = feeds.begin(); it != end; ++it)
feedsToAdd.append(*it);
if (args->count() == 1)
feedsToAdd.append(args->arg(0));
if (!feedsToAdd.isEmpty())
akr.send("addFeedsToGroup", feedsToAdd, addFeedGroup );

Loading…
Cancel
Save