Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
9aa11485
Commit
9aa11485
authored
Oct 12, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes on mac for issue 1164
parent
241e770f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
+24
-17
UBYouTubePublisher.cpp
src/podcast/youtube/UBYouTubePublisher.cpp
+24
-17
No files found.
src/podcast/youtube/UBYouTubePublisher.cpp
View file @
9aa11485
...
@@ -137,7 +137,7 @@ void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray&
...
@@ -137,7 +137,7 @@ void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray&
if
(
mAuthToken
.
length
()
==
0
)
if
(
mAuthToken
.
length
()
==
0
)
{
{
UBApplication
::
showMessage
(
tr
(
"YouTube authentication failed."
));
UBApplication
::
showMessage
(
tr
(
"YouTube authentication failed."
));
// success = false;
// success = false;
deleteLater
();
deleteLater
();
}
}
else
else
...
@@ -340,7 +340,13 @@ UBYouTubePublishingDialog::UBYouTubePublishingDialog(const QString& videoFilePat
...
@@ -340,7 +340,13 @@ UBYouTubePublishingDialog::UBYouTubePublishingDialog(const QString& videoFilePat
dialogButtons
->
button
(
QDialogButtonBox
::
Ok
)
->
setEnabled
(
false
);
dialogButtons
->
button
(
QDialogButtonBox
::
Ok
)
->
setEnabled
(
false
);
dialogButtons
->
button
(
QDialogButtonBox
::
Ok
)
->
setText
(
tr
(
"Upload"
));
dialogButtons
->
button
(
QDialogButtonBox
::
Ok
)
->
setText
(
tr
(
"Upload"
));
UBSettings
*
settings
=
UBSettings
::
settings
();
email
->
setText
(
settings
->
youTubeUserEMail
->
get
().
toString
());
password
->
setText
(
settings
->
password
(
email
->
text
()));
youtubeCredentialsPersistence
->
setChecked
(
UBSettings
::
settings
()
->
youTubeCredentialsPersistence
->
get
().
toBool
());
youtubeCredentialsPersistence
->
setChecked
(
UBSettings
::
settings
()
->
youTubeCredentialsPersistence
->
get
().
toBool
());
updatePersistanceEnableState
();
}
}
...
@@ -353,7 +359,7 @@ void UBYouTubePublishingDialog::updatePersistanceEnableState()
...
@@ -353,7 +359,7 @@ void UBYouTubePublishingDialog::updatePersistanceEnableState()
{
{
bool
enabled
=
email
->
text
().
length
()
||
password
->
text
().
length
();
bool
enabled
=
email
->
text
().
length
()
||
password
->
text
().
length
();
youtubeCredentialsPersistence
->
setEnabled
(
enabled
);
youtubeCredentialsPersistence
->
setEnabled
(
enabled
);
youtubeCredentialsPersistence
->
setStyleSheet
(
enabled
?
"color:black;"
:
"color
lightgra
y;"
);
youtubeCredentialsPersistence
->
setStyleSheet
(
enabled
?
"color:black;"
:
"color
: lightgre
y;"
);
}
}
void
UBYouTubePublishingDialog
::
updateUIState
(
const
QString
&
string
)
void
UBYouTubePublishingDialog
::
updateUIState
(
const
QString
&
string
)
...
@@ -367,6 +373,7 @@ void UBYouTubePublishingDialog::updateUIState(const QString& string)
...
@@ -367,6 +373,7 @@ void UBYouTubePublishingDialog::updateUIState(const QString& string)
&&
password
->
text
().
length
()
>
0
;
&&
password
->
text
().
length
()
>
0
;
dialogButtons
->
button
(
QDialogButtonBox
::
Ok
)
->
setEnabled
(
ok
);
dialogButtons
->
button
(
QDialogButtonBox
::
Ok
)
->
setEnabled
(
ok
);
updatePersistanceEnableState
();
}
}
...
...
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