[rkward] rkward: Add debug statement

Thomas Friedrichsmeier null at kde.org
Sun Apr 29 07:21:42 UTC 2018


Git commit 4c13c9bc76e372b6466dbfd33284fb280e959763 by Thomas Friedrichsmeier.
Committed on 29/04/2018 at 07:21.
Pushed by tfry into branch 'master'.

Add debug statement

M  +1    -0    rkward/rkward.cpp

https://commits.kde.org/rkward/4c13c9bc76e372b6466dbfd33284fb280e959763

diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 3964ba8e..01baef62 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -202,6 +202,7 @@ void RKWardMainWindow::doPostInit () {
 	QFile resource_ver (RKCommonFunctions::getRKWardDataDir () + "resource.ver");
 	if (!(resource_ver.open (QIODevice::ReadOnly) && (resource_ver.read (100).trimmed () == RKWARD_VERSION))) {
 		KMessageBox::error (this, i18n ("<p>RKWard either could not find its resource files at all, or only an old version of those files. The most likely cause is that the last installation failed to place the files in the correct place. This can lead to all sorts of problems, from single missing features to complete failure to function.</p><p><b>You should quit RKWard, now, and fix your installation</b>. For help with that, see <a href=\"http://rkward.kde.org/compiling\">http://rkward.kde.org/compiling</a>.</p>"), i18n ("Broken installation"), KMessageBox::Notify | KMessageBox::AllowLink);
+		RK_DEBUG(APP, DL_WARNING, "resource.ver not found. Data path(s): %s", QStandardPaths::standardLocations (QStandardPaths::GenericDataLocation).join (':'));
 	}
 
 	QStringList open_urls = RKGlobals::startup_options.take ("initial_urls").toStringList ();



More information about the rkward-tracker mailing list