fix TUI
[fanfix.git] / src / be / nikiroo / fanfix / reader / tui / TuiReaderApplication.java
index 6b8ce2b077b88eddfbb6c513343bfabad98508d7..2b02dd00060b067a0d44c3d4db9d9304e7577f60 100644 (file)
@@ -66,7 +66,7 @@ class TuiReaderApplication extends TApplication implements Reader {
                        TApplication.BackendType backend) throws Exception {
                super(backend);
                init(reader);
-
+               
                showMain();
                main.setMode(Mode.SOURCE, source);
        }
@@ -82,7 +82,7 @@ class TuiReaderApplication extends TApplication implements Reader {
        }
 
        @Override
-       public Story getStory(Progress pg) {
+       public Story getStory(Progress pg) throws IOException {
                return reader.getStory(pg);
        }
 
@@ -113,7 +113,11 @@ class TuiReaderApplication extends TApplication implements Reader {
 
        @Override
        public void browse(String source) {
-               reader.browse(source);
+               try {
+                       reader.browse(source);
+               } catch (IOException e) {
+                       Instance.getTraceHandler().error(e);
+               }
        }
 
        @Override
@@ -126,6 +130,11 @@ class TuiReaderApplication extends TApplication implements Reader {
                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 {