equal
deleted
inserted
replaced
19 * |
19 * |
20 */ |
20 */ |
21 |
21 |
22 |
22 |
23 #include "LoadController.h" |
23 #include "LoadController.h" |
|
24 #include "webpagecontroller.h" |
|
25 #include "wrtbrowsercontainer.h" |
24 #include <QDebug> |
26 #include <QDebug> |
25 |
27 |
26 namespace WRT { |
28 namespace WRT { |
27 |
29 |
28 LoadController::LoadController ( ) : |
30 LoadController::LoadController ( ) : |
68 |
70 |
69 m_progress = 100; |
71 m_progress = 100; |
70 |
72 |
71 m_gotoMode = GotoModeReloadable; |
73 m_gotoMode = GotoModeReloadable; |
72 |
74 |
|
75 // FIXME it is a temp fix for the url change issued with cached pages |
|
76 if (ok) { |
|
77 WebPageController * pageController = WebPageController::getSingleton(); |
|
78 if (pageController->currentPage()->loadController() == this) |
|
79 m_textBoxValue = pageController->currentDocUrl(); |
|
80 } |
73 // TODO: Change to editing mode if load failed |
81 // TODO: Change to editing mode if load failed |
74 /* |
82 /* |
75 // if page succeed, set the text and goto reloading mode, else load mode |
83 // if page succeed, set the text and goto reloading mode, else load mode |
76 if(ok) |
84 if(ok) |
77 { |
85 { |