Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
David Planella
juk
Commits
c4360285
Commit
c4360285
authored
Oct 07, 2018
by
Pino Toscano
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/Applications/18.08'
parents
eb1d9b62
441cb735
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
webimagefetcher.cpp
webimagefetcher.cpp
+12
-3
webimagefetcher.h
webimagefetcher.h
+1
-0
No files found.
webimagefetcher.cpp
View file @
c4360285
...
...
@@ -200,6 +200,7 @@ void WebImageFetcher::slotImageFetched(KJob* j)
connect
(
buttonBox
,
&
QDialogButtonBox
::
rejected
,
d
->
dialog
,
&
QDialog
::
reject
);
connect
(
d
->
dialog
,
&
QDialog
::
accepted
,
this
,
&
WebImageFetcher
::
slotCoverChosen
);
connect
(
d
->
dialog
,
&
QDialog
::
rejected
,
this
,
&
WebImageFetcher
::
destroyDialog
);
d
->
dialog
->
setWindowIcon
(
realImage
);
d
->
dialog
->
show
();
...
...
@@ -215,10 +216,18 @@ void WebImageFetcher::slotCoverChosen()
if
(
newId
!=
CoverManager
::
NoMatch
)
{
emit
signalCoverChanged
(
newId
);
d
->
dialog
->
close
();
d
->
dialog
->
deleteLater
();
d
->
dialog
=
0
;
destroyDialog
();
}
}
void
WebImageFetcher
::
destroyDialog
()
{
if
(
!
d
->
dialog
)
return
;
d
->
dialog
->
close
();
d
->
dialog
->
deleteLater
();
d
->
dialog
=
0
;
}
// vim: set et sw=4 tw=0 sta:
webimagefetcher.h
View file @
c4360285
...
...
@@ -45,6 +45,7 @@ private slots:
void
slotWebRequestFinished
(
KJob
*
job
);
void
slotImageFetched
(
KJob
*
job
);
void
slotCoverChosen
();
void
destroyDialog
();
private:
class
Private
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment