Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Kipi Plugins
Commits
c1efab61
Commit
c1efab61
authored
Apr 26, 2012
by
Gilles Caulier
🗼
Browse files
factorize
parent
60eb490f
Changes
1
Hide whitespace changes
Inline
Side-by-side
facebook/fbwindow.cpp
View file @
c1efab61
...
...
@@ -723,11 +723,9 @@ void FbWindow::uploadNextPhoto()
m_widget
->
progressBar
()
->
setValue
(
m_imagesCount
);
// check if we have to RAW file -> use preview image then
QString
rawFilesExt
(
KDcrawIface
::
KDcraw
::
rawFiles
());
QFileInfo
fileInfo
(
imgPath
);
bool
isRAW
=
KPMetadata
::
isRawFile
(
imgPath
);
QString
caption
;
bool
isRAW
=
rawFilesExt
.
toUpper
().
contains
(
fileInfo
.
suffix
().
toUpper
());
bool
res
;
bool
res
;
if
(
isRAW
||
m_widget
->
m_resizeChB
->
isChecked
())
{
...
...
@@ -743,7 +741,7 @@ void FbWindow::uploadNextPhoto()
{
caption
=
getImageCaption
(
imgPath
);
m_tmpPath
.
clear
();
res
=
m_talker
->
addPhoto
(
imgPath
,
m_currentAlbumID
,
caption
);
res
=
m_talker
->
addPhoto
(
imgPath
,
m_currentAlbumID
,
caption
);
}
if
(
!
res
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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