git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small code cleanup
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
tui
/
TuiReaderApplication.java
diff --git
a/src/be/nikiroo/fanfix/reader/tui/TuiReaderApplication.java
b/src/be/nikiroo/fanfix/reader/tui/TuiReaderApplication.java
index 6b8ce2b077b88eddfbb6c513343bfabad98508d7..2b02dd00060b067a0d44c3d4db9d9304e7577f60 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/tui/TuiReaderApplication.java
+++ b/
src/be/nikiroo/fanfix/reader/tui/TuiReaderApplication.java
@@
-66,7
+66,7
@@
class TuiReaderApplication extends TApplication implements Reader {
TApplication.BackendType backend) throws Exception {
super(backend);
init(reader);
TApplication.BackendType backend) throws Exception {
super(backend);
init(reader);
-
+
showMain();
main.setMode(Mode.SOURCE, source);
}
showMain();
main.setMode(Mode.SOURCE, source);
}
@@
-82,7
+82,7
@@
class TuiReaderApplication extends TApplication implements Reader {
}
@Override
}
@Override
- public Story getStory(Progress pg) {
+ public Story getStory(Progress pg)
throws IOException
{
return reader.getStory(pg);
}
return reader.getStory(pg);
}
@@
-113,7
+113,11
@@
class TuiReaderApplication extends TApplication implements Reader {
@Override
public void browse(String source) {
@Override
public void browse(String source) {
- reader.browse(source);
+ try {
+ reader.browse(source);
+ } catch (IOException e) {
+ Instance.getTraceHandler().error(e);
+ }
}
@Override
}
@Override
@@
-126,6
+130,11
@@
class TuiReaderApplication extends TApplication implements Reader {
reader.setChapter(chapter);
}
reader.setChapter(chapter);
}
+ @Override
+ public void search(boolean sync) throws IOException {
+ reader.search(sync);
+ }
+
@Override
public void search(SupportType searchOn, String keywords, int page,
int item, boolean sync) throws IOException {
@Override
public void search(SupportType searchOn, String keywords, int page,
int item, boolean sync) throws IOException {