summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index aba1fc69..88466d73 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -20,6 +20,10 @@
#include <QStandardPaths>
#include <spdlog/spdlog.h>
+#ifdef QT_DEBUG
+#include "test/rview_fake.h"
+#endif
+
// ---------------------------------------------------------------------------------------------------------------
// Ctor and Dtor
@@ -383,6 +387,19 @@ RekonqWindow *Application::newWindow()
RekonqView *Application::newView(const QUrl &url, RekonqWindow *window)
{
+#ifdef QT_DEBUG
+ if (url.isEmpty()) {
+ auto *view = new RekonqView_fake(window);
+ if (window == nullptr) {
+ m_views.append(view);
+ view->show();
+ }
+ else
+ window->addView(view);
+ return view;
+ }
+#endif
+
RekonqPluginInterface *interface = nullptr;
for (const auto &plugin : m_plugins)
if (plugin->hasScheme(url.scheme())) {