[rkward] rkward: Move away from deprecated functions

Thomas Friedrichsmeier null at kde.org
Sat Apr 21 20:05:51 UTC 2018


Git commit 35108e438da7ecfb84f8c99cd58207052b3c70fc by Thomas Friedrichsmeier.
Committed on 21/04/2018 at 20:05.
Pushed by tfry into branch 'master'.

Move away from deprecated functions

M  +2    -2    rkward/agents/rkloadagent.cpp
M  +3    -3    rkward/rkconsole.cpp

https://commits.kde.org/rkward/35108e438da7ecfb84f8c99cd58207052b3c70fc

diff --git a/rkward/agents/rkloadagent.cpp b/rkward/agents/rkloadagent.cpp
index 34d383af..82b2a2b1 100644
--- a/rkward/agents/rkloadagent.cpp
+++ b/rkward/agents/rkloadagent.cpp
@@ -2,7 +2,7 @@
                           rkloadagent  -  description
                              -------------------
     begin                : Sun Sep 5 2004
-    copyright            : (C) 2004, 2007, 2009, 2011, 2012, 2014 by Thomas Friedrichsmeier
+    copyright            : (C) 2004-2018 by Thomas Friedrichsmeier
     email                : thomas.friedrichsmeier at kdemail.net
  ***************************************************************************/
 
@@ -51,7 +51,7 @@ RKLoadAgent::RKLoadAgent (const QUrl &url, bool merge) {
 		KIO::Job* getjob = KIO::file_copy (url, QUrl::fromLocalFile (tmpfile->fileName()));
 		KJobWidgets::setWindow (getjob, RKWardMainWindow::getMain ());
 		if (!getjob->exec ()) {
-			getjob->ui ()->showErrorMessage();
+			getjob->uiDelegate ()->showErrorMessage();
 			return;
 		}
 		filename = tmpfile->fileName ();
diff --git a/rkward/rkconsole.cpp b/rkward/rkconsole.cpp
index ac56b2f1..3b28f3ad 100644
--- a/rkward/rkconsole.cpp
+++ b/rkward/rkconsole.cpp
@@ -2,7 +2,7 @@
                           rkconsole  -  description
                              -------------------
     begin                : Thu Aug 19 2004
-    copyright            : (C) 2004, 2006, 2007, 2009, 2010, 2011 by Thomas Friedrichsmeier
+    copyright            : (C) 2004-2018 by Thomas Friedrichsmeier
     email                : thomas.friedrichsmeier at kdemail.net
  ***************************************************************************/
 
@@ -827,7 +827,7 @@ void RKConsole::userLoadHistory (const QUrl &_url) {
 		KIO::Job* getjob = KIO::file_copy (url, QUrl::fromLocalFile (tmpfile->fileName()));
 		KJobWidgets::setWindow (getjob, RKWardMainWindow::getMain ());
 		if (!getjob->exec ()) {
-			getjob->ui ()->showErrorMessage();
+			getjob->uiDelegate ()->showErrorMessage();
 			delete (tmpfile);
 			return;
 		}
@@ -861,7 +861,7 @@ void RKConsole::userSaveHistory (const QUrl &_url) {
 	KIO::Job* getjob = KIO::file_copy (QUrl::fromLocalFile (tempfile.fileName()), url);
 	KJobWidgets::setWindow (getjob, RKWardMainWindow::getMain ());
 	if (!getjob->exec ()) {
-		getjob->ui ()->showErrorMessage();
+		getjob->uiDelegate ()->showErrorMessage();
 		return;
 	}
 }



More information about the rkward-tracker mailing list