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
Version 1.1.0
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
LocalReaderFrame.java
diff --git
a/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java
b/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java
index a7c743cf82858e6af475f25cda6e4b1f244880c2..d431d8e452ff821a375b07dd2a1ac19c4173344f 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/LocalReaderFrame.java
+++ b/
src/be/nikiroo/fanfix/reader/LocalReaderFrame.java
@@
-24,7
+24,7
@@
import be.nikiroo.fanfix.Instance;
import be.nikiroo.fanfix.Main;
import be.nikiroo.fanfix.bundles.UiConfig;
import be.nikiroo.fanfix.data.MetaData;
import be.nikiroo.fanfix.Main;
import be.nikiroo.fanfix.bundles.UiConfig;
import be.nikiroo.fanfix.data.MetaData;
-import be.nikiroo.fanfix.reader.LocalReaderBook.BookActionListner;
+import be.nikiroo.fanfix.reader.LocalReaderBook.BookActionList
e
ner;
import be.nikiroo.utils.WrapLayout;
class LocalReaderFrame extends JFrame {
import be.nikiroo.utils.WrapLayout;
class LocalReaderFrame extends JFrame {
@@
-89,7
+89,7
@@
class LocalReaderFrame extends JFrame {
books.add(book);
final String luid = meta.getLuid();
books.add(book);
final String luid = meta.getLuid();
- book.addActionListener(new BookActionListner() {
+ book.addActionListener(new BookActionList
e
ner() {
public void select(LocalReaderBook book) {
for (LocalReaderBook abook : books) {
abook.setSelected(abook == book);
public void select(LocalReaderBook book) {
for (LocalReaderBook abook : books) {
abook.setSelected(abook == book);
@@
-98,8
+98,8
@@
class LocalReaderFrame extends JFrame {
public void action(LocalReaderBook book) {
try {
public void action(LocalReaderBook book) {
try {
- File target = LocalReaderFrame.this.reader
-
.getTarget(luid
);
+ File target = LocalReaderFrame.this.reader
.getTarget(
+
luid, null
);
Desktop.getDesktop().browse(target.toURI());
} catch (IOException e) {
Instance.syserr(e);
Desktop.getDesktop().browse(target.toURI());
} catch (IOException e) {
Instance.syserr(e);
@@
-128,7
+128,7
@@
class LocalReaderFrame extends JFrame {
+ "unresponsive until it is downloaded...",
"Importing from URL", JOptionPane.QUESTION_MESSAGE);
if (url != null && !url.isEmpty()) {
+ "unresponsive until it is downloaded...",
"Importing from URL", JOptionPane.QUESTION_MESSAGE);
if (url != null && !url.isEmpty()) {
- if (Main.imprt(url) != 0) {
+ if (Main.imprt(url
, null
) != 0) {
JOptionPane.showMessageDialog(LocalReaderFrame.this,
"Cannot import: " + url, "Imort error",
JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(LocalReaderFrame.this,
"Cannot import: " + url, "Imort error",
JOptionPane.ERROR_MESSAGE);