|
|
@ -158,8 +158,8 @@ void MainWidget::fileSave() {
|
|
|
|
if(salva)
|
|
|
|
if(salva)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_outputFilename=saveFilename;
|
|
|
|
m_outputFilename=saveFilename;
|
|
|
|
ifstream in(m_tmpFilename);
|
|
|
|
ifstream in(m_tmpFilename.local8Bit());
|
|
|
|
ofstream out(m_outputFilename);
|
|
|
|
ofstream out(m_outputFilename.local8Bit());
|
|
|
|
if(!in || !out)
|
|
|
|
if(!in || !out)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
emit signalChangeStatusbar(i18n(i18n("Error while saving file")));
|
|
|
|
emit signalChangeStatusbar(i18n(i18n("Error while saving file")));
|
|
|
@ -179,8 +179,8 @@ void MainWidget::fileSave() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (m_changed)
|
|
|
|
else if (m_changed)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ifstream in(m_tmpFilename);
|
|
|
|
ifstream in(m_tmpFilename.local8Bit());
|
|
|
|
ofstream out(m_outputFilename);
|
|
|
|
ofstream out(m_outputFilename.local8Bit());
|
|
|
|
if(!in || !out)
|
|
|
|
if(!in || !out)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
emit signalChangeStatusbar(i18n("Error while saving file"));
|
|
|
|
emit signalChangeStatusbar(i18n("Error while saving file"));
|
|
|
@ -244,8 +244,8 @@ void MainWidget::fileSaveAs() {
|
|
|
|
if(salva)
|
|
|
|
if(salva)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_outputFilename=saveFilename;
|
|
|
|
m_outputFilename=saveFilename;
|
|
|
|
ifstream in(m_tmpFilename);
|
|
|
|
ifstream in(m_tmpFilename.local8Bit());
|
|
|
|
ofstream out(m_outputFilename);
|
|
|
|
ofstream out(m_outputFilename.local8Bit());
|
|
|
|
if(!in || !out)
|
|
|
|
if(!in || !out)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
emit signalChangeStatusbar(i18n("Error while saving file"));
|
|
|
|
emit signalChangeStatusbar(i18n("Error while saving file"));
|
|
|
|