Commit 2ba2bca0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 430678 - Allow to only enable specific external images

BUG: 430678
(now all is implemented)
FIXED-IN: 5.17.0
parent 7e6ee4c0
Pipeline #51932 canceled with stage
......@@ -5,7 +5,9 @@
*/
#include "remotecontentmenu.h"
#include "remote-content/remotecontentmanager.h"
#include "remotecontentconfiguredialog.h"
#include "remotecontentinfo.h"
#include <KLocalizedString>
#include <QAction>
#include <QDebug>
......@@ -65,7 +67,10 @@ void RemoteContentMenu::updateMenu()
void RemoteContentMenu::authorize(const QString &url)
{
// TODO
RemoteContentInfo info;
info.setUrl(url);
info.setStatus(RemoteContentInfo::RemoteContentInfoStatus::Authorized);
RemoteContentManager::self()->addRemoteContent(info);
}
void RemoteContentMenu::clearUrls()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment