OSSP CVS Repository

ossp - Check-in [2828]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2828
Date: 2002-Nov-14 21:56:51 (local)
2002-Nov-14 20:56:51 (UTC)
User:ms
Branch:
Comment: Make 'Save As' and 'Save' work again by solving memory violation. Hmm, maybe I should rename that 'Save AS' for 'Save Application Services'.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_gui.cpp      1.8 -> 1.9     3 inserted, 0 deleted
ossp-pkg/titraq/titraq.cpp      1.8 -> 1.9     3 inserted, 0 deleted

ossp-pkg/as/as-gui/as_gui.cpp 1.8 -> 1.9

--- as_gui.cpp   2002/11/14 20:29:33     1.8
+++ as_gui.cpp   2002/11/14 20:56:51     1.9
@@ -75,6 +75,7 @@
     m_pFilesaveact->setWhatsThis(kszFilesavetext);
 
     // File save selected action
+    m_szFilename = new QString();
     m_pFilesaveasact = new QAction(trUtf8("Save File As"), trUtf8("Save &as"), 0, this, "SaveAs");
     connect(m_pFilesaveasact, SIGNAL(activated()), this, SLOT(saveAs()));
     m_pFilesaveasact->setWhatsThis(kszFilesavetext);
@@ -235,6 +236,7 @@
 
     // Bottom output line
     m_pStatus = new QLineEdit(m_pCenframe, "Status");
+    m_pStatus->setText(trUtf8("Happy birthday to Ralf"));
     m_pStatus->setFrameShape(QLineEdit::LineEditPanel);
     m_pStatus->setFrameShadow(QLineEdit::Sunken);
     m_pStatus->setFrame(true);
@@ -393,6 +395,7 @@
     QString Filestring = QFileDialog::getSaveFileName(QString::null, QString::null, this);
     if (!Filestring.isEmpty()) {
         *m_szFilename = Filestring;
+        m_pStatus->setText(*m_szFilename);
         save(); // Finish off by calling the save action
     }
     else {


CVSTrac 2.0.1