Fixed #1759.
This commit is contained in:
parent
d668abe2c1
commit
a2608bc924
1 changed files with 9 additions and 5 deletions
|
@ -703,8 +703,10 @@ SearchWindow :: onAddToScratchpad(void) throw ()
|
||||||
try {
|
try {
|
||||||
gLiveSupport->addToScratchpad(playable);
|
gLiveSupport->addToScratchpad(playable);
|
||||||
} catch (XmlRpcException &e) {
|
} catch (XmlRpcException &e) {
|
||||||
std::cerr << "error in SearchWindow::onAddToScratchpad(): "
|
Ptr<Glib::ustring>::Ref errorMessage(new Glib::ustring(
|
||||||
<< e.what() << std::endl;
|
"error in SearchWindow::onAddToScratchpad(): "));
|
||||||
|
errorMessage->append(e.what());
|
||||||
|
gLiveSupport->displayMessageWindow(errorMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -724,12 +726,14 @@ SearchWindow :: onAddToLiveMode(void) throw ()
|
||||||
if (iter) {
|
if (iter) {
|
||||||
Ptr<Playable>::Ref playable = (*iter)[modelColumns.playableColumn];
|
Ptr<Playable>::Ref playable = (*iter)[modelColumns.playableColumn];
|
||||||
if (playable) {
|
if (playable) {
|
||||||
gLiveSupport->addToLiveMode(playable);
|
|
||||||
try {
|
try {
|
||||||
gLiveSupport->addToScratchpad(playable);
|
gLiveSupport->addToScratchpad(playable);
|
||||||
|
gLiveSupport->addToLiveMode(playable);
|
||||||
} catch (XmlRpcException &e) {
|
} catch (XmlRpcException &e) {
|
||||||
std::cerr << "error in SearchWindow::onAddToLiveMode(): "
|
Ptr<Glib::ustring>::Ref errorMessage(new Glib::ustring(
|
||||||
<< e.what() << std::endl;
|
"error in SearchWindow::onAddToLiveMode(): "));
|
||||||
|
errorMessage->append(e.what());
|
||||||
|
gLiveSupport->displayMessageWindow(errorMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue